GithubHelp home page GithubHelp logo

megamsys / megdc Goto Github PK

View Code? Open in Web Editor NEW
8.0 7.0 16.0 58.5 MB

A CLI based megam datacenter management interface

Home Page: https://www.megam.io

License: Apache License 2.0

Makefile 2.60% Go 83.35% Ruby 11.21% Shell 2.84%

megdc's Introduction

=============== Megdc

CLI based installer that sets up our datacenter based Megam cloud platform.

Requirements

Golang 1.5.1 > +

Usage

# To install package verticenilavu in your local system.

megdc verticeinstall --verticenilavu

Compile from source

mkdir -p code/megam/go/src/github.com/megamsys

cd code/megam/go/src/github.com/megamsys

git clone https://github.com/megamsys/megdc.git

cd megdc

make

Documentation

Refer [documentation] (http://www.docs.megam.io)

We are glad to help if you have questions, or request for new features..

twitter @megamsys email [email protected]

License

Author: Rajthilak ([email protected])
KishorekumarNeelamegam ([email protected])
Thomas Alrin ([email protected])
Copyright: Copyright (c) 2013-2015 Megam Systems.
License: Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

megdc's People

Contributors

ranjithamca avatar vinov-megam avatar jaeko44 avatar dhanushganth avatar

Stargazers

Lakshminp avatar Angus H. avatar Yeshwanth Kumar avatar Vijayakanth Mathaiyan avatar Arunkumar avatar Raj avatar John Coleman avatar Kishorekumar Neelamegam avatar

Watchers

James Cloos avatar Kishorekumar Neelamegam avatar Raj avatar  avatar  avatar  avatar Vijayakanth Mathaiyan avatar

megdc's Issues

cobbler script should be preseeded with inputs and shouldn't waits for the input to be provide when invoked from cibd daemon.

cobblerd script performs dpkg-reconfigure. This should be preseeded as we have no way to input the values during the install.

eg:

echo mysql-server mysql-server/root_password select PASSWORD | debconf-set-selections
echo mysql-server mysql-server/root_password_again select PASSWORD | debconf-set-selections

Refer links here. http://serverfault.com/questions/19367/scripted-install-of-mysql-on-ubuntu

more than one sqlite record for megam

sqlite> select * from servers;
1|MEGAM|1|||
2|COBBLER|1||Sep 9, 2014 at 12:01pm (EDT)|Sep 9, 2014 at 12:01pm (EDT)
4|MEGAM|1||Sep 12, 2014 at 6:08am (EDT)|Sep 12, 2014 at 6:08am (EDT)
5|MEGAM|1||Sep 12, 2014 at 6:08am (EDT)|Sep 12, 2014 at 6:08am (EDT)
6|MEGAM|1||Sep 12, 2014 at 6:09am (EDT)|Sep 12, 2014 at 6:09am (EDT)
8|MEGAM|1||Sep 12, 2014 at 6:15am (EDT)|Sep 12, 2014 at 6:15am (EDT)
9|MEGAM|1||Sep 12, 2014 at 7:34am (EDT)|Sep 12, 2014 at 7:34am (EDT)
10|MEGAM|1||Sep 12, 2014 at 7:35am (EDT)|Sep 12, 2014 at 7:35am (EDT)

medc changes

  1. Move the Help to appear as the first entry.
  2. RMQ create a command for install
  3. megamnilavu needs bundle update and bundle install

megdc : cepdump a new command needed

The command shall dump all the images from the default rbd pool "one" or the user provided pool.

All the dumped images shall be named as `<vmdescription_if_exists>.img

Then make it as a tarball and ship to a know location. (sftp, or another storage)

status command

This a feature for 1.0

Add a colored status output in a table format of the installation (host/port) and its status

Show error message that it needs parameters, when doing megdc cephinstall

I tried megd cephinstall without any parameters, it shows the below error.

root@f484:~# megdc cephinstall

    ███╗   ███╗███████╗ ██████╗ ██████╗  ██████╗
    ████╗ ████║██╔════╝██╔════╝ ██╔══██╗██╔════╝
    ██╔████╔██║█████╗  ██║  ███╗██║  ██║██║
    ██║╚██╔╝██║██╔══╝  ██║   ██║██║  ██║██║
    ██║ ╚═╝ ██║███████╗╚██████╔╝██████╔╝╚██████╗
    ╚═╝     ╚═╝╚══════╝ ╚═════╝ ╚═════╝  ╚═════╝
starting install ⠏
Packages
CephInstall
Options
CephUser    megdc
CephPassword    megdc
PhyDev  eth0

---
panic: empty path given to mkdir

goroutine 1 [running]:
panic(0x703980, 0xc8200e8820)
    /home/ranjitha/software/go/src/runtime/panic.go:464 +0x3e6
github.com/megamsys/megdc/templates/ubuntu.Mkdir(0x0, 0x0, 0x0, 0x0, 0x1ed, 0x2)
    /home/ranjitha/code/megam/workspace/packager/megammegdc/build/trusty/megdc/src/github.com/megamsys/megdc/templates/ubuntu/cmd_fileutils.go:12 +0xae
github.com/megamsys/megdc/templates/ubuntu.(*UbuntuCephInstallTemplate).Render(0xc8200987d0, 0x7f84a8d4b420, 0xc8200710c0)
    /home/ranjitha/code/megam/workspace/packager/megammegdc/build/trusty/megdc/src/github.com/megamsys/megdc/templates/ubuntu/tpl_ceph_install.go:145 +0x164c
github.com/megamsys/urknall.(*packageImpl).AddTemplate(0xc820070f00, 0xc820074f40, 0x4, 0x7f84a8d4b458, 0xc8200987d0)
    /home/ranjitha/.go/src/github.com/megamsys/urknall/package_impl.go:47 +0x2e3
github.com/megamsys/megdc/templates/ubuntu.(*UbuntuCephInstall).Render(0xc820070e80, 0x7f84a8d4b420, 0xc820070f00)
    /home/ranjitha/code/megam/workspace/packager/megammegdc/build/trusty/megdc/src/github.com/megamsys/megdc/templates/ubuntu/tpl_ceph_install.go:84 +0x1be
github.com/megamsys/urknall.renderTemplate(0x7f84a8d4b3f8, 0xc820070e80, 0xc820070e40, 0x0, 0x0)
    /home/ranjitha/.go/src/github.com/megamsys/urknall/utils.go:16 +0x153
github.com/megamsys/urknall.(*Build).prepareBuild(0xc820070ec0, 0x8bdd9d, 0x0, 0x0)
    /home/ranjitha/.go/src/github.com/megamsys/urknall/build.go:78 +0x5c
github.com/megamsys/urknall.(*Build).Run(0xc820070ec0, 0x0, 0x0)
    /home/ranjitha/.go/src/github.com/megamsys/urknall/build.go:36 +0x45
github.com/megamsys/urknall.Run(0x7f84a8d4b3b8, 0xc820074e70, 0x7f84a8d4b3f8, 0xc820070e80, 0x0, 0x0)
    /home/ranjitha/.go/src/github.com/megamsys/urknall/build.go:16 +0x9a
github.com/megamsys/megdc/templates/ubuntu.(*UbuntuCephInstall).Run(0xc820070380, 0x7f84a8d4b3b8, 0xc820074e70, 0x0, 0x0)
    /home/ranjitha/code/megam/workspace/packager/megammegdc/build/trusty/megdc/src/github.com/megamsys/megdc/templates/ubuntu/tpl_ceph_install.go:93 +0x139
github.com/megamsys/megdc/templates.(*Template).Run(0xc8200986e0, 0x0, 0x0)
    /home/ranjitha/code/megam/workspace/packager/megammegdc/build/trusty/megdc/src/github.com/megamsys/megdc/templates/template.go:80 +0x420
github.com/megamsys/megdc/handler.(*Handler).Run.func1(0xc8200986e0, 0xc820072240, 0x0, 0x0)
    /home/ranjitha/code/megam/workspace/packager/megammegdc/build/trusty/megdc/src/github.com/megamsys/megdc/handler/handler.go:84 +0x2d
github.com/megamsys/megdc/templates.RunInTemplates.func1(0x0, 0x1, 0x0, 0x0)
    /home/ranjitha/code/megam/workspace/packager/megammegdc/build/trusty/megdc/src/github.com/megamsys/megdc/templates/template.go:104 +0xdf
github.com/megamsys/megdc/templates.RunInTemplates(0xc820080078, 0x1, 0x1, 0x8bef48, 0x0, 0xc8200c5900, 0x0, 0x0)
    /home/ranjitha/code/megam/workspace/packager/megammegdc/build/trusty/megdc/src/github.com/megamsys/megdc/templates/template.go:122 +0x3b1
github.com/megamsys/megdc/handler.(*Handler).Run(0xc820070d80, 0x0, 0x0)
    /home/ranjitha/code/megam/workspace/packager/megammegdc/build/trusty/megdc/src/github.com/megamsys/megdc/handler/handler.go:89 +0x66
github.com/megamsys/megdc/packages/ceph.(*Cephinstall).Run(0xc8200707c0, 0xc820098640, 0x0, 0x0)
    /home/ranjitha/code/megam/workspace/packager/megammegdc/build/trusty/megdc/src/github.com/megamsys/megdc/packages/ceph/cephinstall.go:68 +0x172
github.com/megamsys/libgo/cmd.(*Manager).Run(0xc8200bc000, 0x0, 0x0, 0x0)
    /home/ranjitha/.go/src/github.com/megamsys/libgo/cmd/cmd.go:184 +0x1ec6
main.main()
    /home/ranjitha/code/megam/workspace/packager/megammegdc/build/trusty/megdc/src/github.com/megamsys/megdc/cmd/megdc/main.go:79 +0xba

cobblerd fails to start when the server is restarted.

When the server is restarted, cobblerd doesn't restart. It says its unable to proxy.

To fix this problem, we need an entry in the /etc/hosts

127.0.0.1 localhost
192.168.2.10 megamubuntu

where 192.168.2.10 is the ipaddress of the server (where cobbler is running)

change ceph new installation

echo deb https://download.ceph.com/debian-infernalis/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add -
sudo apt-get update && sudo apt-get install ceph ceph-mds ceph-deploy radosgw

mkdir /storage1/osd
mkdir /storage2/osd

chown -r ceph:ceph /storage1/osd
chown -r ceph:ceph /storage2/osd

Remove it, it show error
echo "public network = 91.194.84.0/32" >> ceph.conf
echo "cluster network = 91.194.84.0/32" >> ceph.conf

sqllite insert error upon completion of successfully executing the megam.sh

  • I logged into megamcib
  • It started installing megam.
  • I can see that it installed megam successfully.
  • At the end cib attempted to insert into cloudinabox.db
    The follow error was shown.
cibadmin@megamubuntu:~$ tail -f /var/log/megam/megamcib/megamcib.log
Sat Sep 20 10:33:36 EDT 2014: Step1: megam installed successfully.
broadcast entry ========> 
2014/09/20 10:33:36 [I] Message from megam ;Content: Sat Sep 20 10:33:36 EDT 2014: Step1: megam installed successfully. 
2014/09/20 10:33:36 [I] Message from megam ;Content: Sat Sep 20 10:33:36 EDT 2014: Step1: megam installed successfully. 
2014/09/20 10:33:36 {Installing megam..
 %!s(int=0)   %!s(bytes.readOp=0)}
server insert error
2014/09/20 10:33:36 [pipeline] error running the Forward for the megamInstall action - no such table: servers
Error: Install error for [MEGAM]no such table: servers
no such table: servers2014/09/20 10:33:36 [D] | GET        | /servers/MEGAM                           | 2.599599782s     | match      | /servers/:servername 

@thomasalrin fyi.

boot menu changes

Edit the script which boots a new node
/var/lib/tftpboot/pxelinux.cfg$ sudo nano default

megamheka and megamanalytics fail to start

sudo status megamheka
is stop/waiting
sudo status megamanalytics
is stop/waiting

It seems that the upstart script has a problem with the cd directory maybe. Check both the upstarts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.