Juniper / contrail-installer

Install scripts for OpenContrail
29 stars 64 forks source link

Devstack compilation fails !!! #129

Open raviprasad239 opened 8 years ago

raviprasad239 commented 8 years ago

./stack sh fails for stable/kilo branch as git checkout failed for keystone:

2016-07-15 07:45:00.459 | Cloning into '/opt/stack/keystone'... 2016-07-15 07:45:30.440 | + cd /opt/stack/keystone 2016-07-15 07:45:30.440 | + git checkout stable/kilo 2016-07-15 07:45:30.441 | error: pathspec 'stable/kilo' did not match any file(s) known to git.

derekhuang commented 8 years ago

Most likely it is because 'stable/kilo' has reached its EOL in May. Not sure whether contrail-installer can work with 'stable/liberty'. Maybe you can have a try.

dbarbatti commented 7 years ago

stable/liberty gives the same error.. Ravi did you get past this ?

raviprasad239 commented 7 years ago

Daniel, I had not verified this with 'stable/liberty'.

Pavaniaddanki commented 7 years ago

I am also facing the same issue.Did anyone resolve this.

dbarbatti commented 7 years ago

I did verify that neither Kilo or Liberty are available anymore out of the "standard" repository. I am told there is some way to get them but I have yet to figure it out. you will see at this site they are end of life: https://releases.openstack.org/ I tried this with the Mitaka and Newton releases and I get passed this error only to get different errors. LOL I ran out of time and paused this effort. I talk to a guy from Juniper I know and he felt that Mitaka should work for this installation. I hope to get back to trying this in the next week or two but if you guys can also help maybe we can finally get this to a conclusion !

ldurandadomia commented 7 years ago

Hello,

I'm also trying to install DevStack + OpenContrail since several days. I've made lots of unsucessful trials.

below is the configuration I'm using :

Virtual Machine 1 CPU 8 GB memory 40 GB disk System : Ubuntu 14.04.4 (ubuntu-14.04.4-desktop-amd64). I've downgrated default ubuntu kernel from 4.2.0-42 to 3.13.0-85.

$ uname -r 3.13.0-85-generic $ lsb_release -r Release: 14.04

Network configuration : I've two interfaces, eth0 with a static IP. Default gateway is reachable through Eht0.

$ cat /etc/hosts 127.0.0.1 localhost ubuntu-oct 127.0.1.1 ubuntu ubuntu-oct ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 192.168.37.175 ubuntu-oct

$ cat /etc/hostname ubuntu-oct

$ netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.37.2 0.0.0.0 UG 0 0 0 eth0 192.168.37.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.152.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

$ ifconfig eth0 Link encap:Ethernet HWaddr 00:0c:29:17:b9:a8 inet addr:192.168.37.175 Bcast:192.168.37.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe17:b9a8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17048 errors:0 dropped:0 overruns:0 frame:0 TX packets:5818 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:25466513 (25.4 MB) TX bytes:361596 (361.5 KB)

eth1 Link encap:Ethernet HWaddr 00:0c:29:17:b9:b2 inet addr:192.168.152.196 Bcast:192.168.152.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe17:b9b2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:95 errors:0 dropped:0 overruns:0 frame:0 TX packets:57 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:21410 (21.4 KB) TX bytes:9179 (9.1 KB)

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:193 errors:0 dropped:0 overruns:0 frame:0 TX packets:193 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:15307 (15.3 KB) TX bytes:15307 (15.3 KB)

Installation process : I'm following installation process described below : $ git clone https://github.com/Juniper/contrail-installer.git $ cd contrail-installer $ git config --global user.email "ldurand@example.com" $ git config --global user.name "ldurand"

Then I'm creating "localrc" file : STACK_DIR=$(cd $(dirname $0) && pwd) LOG_DIR=$STACK_DIR/log/screens LOG=True DEBUG=True LOGFILE=$STACK_DIR/log/contrail.log LOGDAYS=1 USE_SCREEN=True PASSWORD=admin DATABASE_PASSWORD=$PASSWORD RABBIT_PASSWORD=$PASSWORD SERVICE_TOKEN=$PASSWORD SERVICE_PASSWORD=$PASSWORD ADMIN_PASSWORD=$PASSWORD LOG_LEVEL=3 SERVICE_TIMEOUT=180 SERVICE_HOST=localhost INSTALL_PROFILE=ALL PHYSICAL_INTERFACE=eth0 CONTRAIL_DEFAULT_INSTALL=False CONTRAIL_REPO_PROTO=https GIT_BASE=https://github.com CASS_MAX_HEAP_SIZE=500M CASS_HEAP_NEWSIZE=100M CONTRAIL_VGW_INTERFACE=vgw CONTRAIL_VGW_PUBLIC_SUBNET=11.0.0.0/24 CONTRAIL_VGW_PUBLIC_NETWORK=default-domain:demo:net:net

Next I'm starting "contrail" build using following commands : ./contrail.sh build ./contrail.sh install ./contrail.sh configure ./contrail.sh start

And I'm getting a good result with above localrc file or this file with following supplementary instruction CONTRAIL_BRANCH=R3.2 or CONTRAIL_BRANCH=R3.1.1.x

So, at the end of contrail installation I'm getting 3 new interfaces : pkt0, vgw and vhost0 $ ifconfig | grep "Link encap" eth0 Link encap:Ethernet HWaddr 00:0c:29:17:b9:a8
eth1 Link encap:Ethernet HWaddr 00:0c:29:17:b9:b2
lo Link encap:Local Loopback
pkt0 Link encap:Ethernet HWaddr e6:0e:ca:f9:db:2d
vgw Link encap:Ethernet HWaddr 00:00:5e:00:01:00
vhost0 Link encap:Ethernet HWaddr 00:0c:29:17:b9:a8
virbr0 Link encap:Ethernet HWaddr 86:f2:ac:cb:21:4f

Contrail status is OK : $ cd ~/contrail-installer/utilities $ export CONTRAIL_DIR=~/contrail-installer $ export DEVSTACK_DIR=~/devstack $ ./contrail-status /home/ldurand/contrail-installer Invalid devstack directory please set DEVSTACK_DIR and try again ls: cannot access *.failure: No such file or directory agent_1 : ACTIVE agent : ACTIVE alarm : ACTIVE analytics-api : ACTIVE apiSrv : ACTIVE cass : ACTIVE collector : ACTIVE control : ACTIVE disco : ACTIVE dns : ACTIVE ifmap : ACTIVE kafka : ACTIVE named : ACTIVE query-engine : ACTIVE redis : ACTIVE redis-w : ACTIVE schema : ACTIVE svc-mon : ACTIVE ui-jobs : ACTIVE ui-webs : ACTIVE zk : ACTIVE

Contrail Web GUI is fine at http://127.0.0.1:8080

This first part is successfull. But DevStack integration is faulty.

ldurandadomia commented 7 years ago

For DevStack integration I'm proceeding as described below : DevStack source download : $ cd $ git clone https://github.com/openstack-dev/devstack.git -b stable/"VERSION" $ cd devstack $ git checkout stable/"VERSION" $ git config --global user.email "ldurand@example.com" $ git config --global user.name "ldurand" $ cp ~/contrail-installer/devstack/lib/neutron_plugins/opencontrail ~/devstack/lib/neutron_plugins/

DevStack Build and Configuration File I'm creating such a local.conf file : [[local|localrc]] HOST_IP=192.168.37.175 SERVICE_HOST=$HOST_IP MYSQL_HOST=$HOST_IP RABBIT_HOST=$HOST_IP GLANCE_HOSTPORT=$HOST_IP:9292 ADMIN_PASSWORD=admin MYSQL_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD SERVICE_TOKEN=$ADMIN_PASSWORD GIT_BASE=${GIT_BASE:-https://git.openstack.org} STACK_DIR=/opt/stack LOG_DIR=$STACK_DIR/logs/screens LOG=True DEBUG=True LOGFILE=$STACK_DIR/logs/stack.log LOGDAYS=1 SCREEN_LOGDIR=$LOG_DIR disable_service tempest NEUTRON_CREATE_INITIAL_NETWORKS=False disable_service n-net enable_service q-svc enable_service q-meta enable_service neutron disable_service q-agt disable_service q-dhcp disable_service q-l3 Q_PLUGIN=opencontrail

DevStack Building phase First I'm "updating" Ubuntu system with "apt-get -f install" (if not DevStack build will stop and will ask to run this command ... so It's better to do it before to launch the build). $ sudo apt-get -f install I'm also adding lsb-core module in order to suppress "lsb error message" in contrail-sanity command. $ sudo apt-get install lsb-core

Then I'm launching : ./stack.sh

And the build is successfull ... but ... sanity check is faulty. $ cd ~/contrail-installer/utilities $ export CONTRAIL_DIR=~/contrail-installer $ export DEVSTACK_DIR=~/devstack $ ./contrail-sanity ==> ERROR in Neutron checkings.

ldurandadomia commented 7 years ago

Successfull builds with master or newton DevStack sources I've desactivated 'tempest' and the creation of demo network in devstack configuration file (any build without these two lines is faulty) : disable_service tempest NEUTRON_CREATE_INITIAL_NETWORKS=False

Builds are OK when I'm using "master" or "newton" release on devstack git : It means any of these two clone method : $ git clone https://github.com/openstack-dev/devstack.git -b stable/newton $ cd devstack $ git checkout stable/newton or $ git clone https://github.com/openstack-dev/devstack.git $ cd devstack

Mitaka Neutron and master or newton DevStack sources I'm facing a compilation issue with Mitaka due to following open issue on keystone : https://bugs.launchpad.net/devstack/+bug/1651292 So, I've not been able to build a Mitaka Devstack even without Contrail Plugin. Anyway I've tried to build DevStack+OpenContrail with master or newton release but with Neutron in Mitaka branch adding following line in local.conf : NEUTRON_BRANCH=stable/mitaka Mitaka Neutron + (Master or Newton) DevStack + (R3.2 or R3.1.1.x) opencontrail compilation is successfull. But "contrail-sanity" is also faulty.

Liberty, Kilo Any try I've made with Liberty or Kilo was unsuccessful. Build have fails.

Successfull builds but faulty "contrail integration" Even if build are successfulls, OpenContrail integration is faulty.

Using command lines, I'm getting an error when I'm trying to add a network or a router : $ source openrc admin admin $ neutron net-create demo-net --provider:network_type vxlan $ neutron router-create demo-router

Same issue when I'm connected onto Horizon WebGUI. I can't add any new network or router. contrail-sanity is OK for "contrail status", but is faulty for Neutron test. When I'm looking into "contrail screen" or in "stack screen", all processes are running. But in Neutron I can see a "unexpected error" message for each network object creation requested.

ldurandadomia commented 7 years ago

I'm getting same issue using another installation method. Cf : https://github.com/zioc/contrail-devstack-plugin/issues/27

dbarbatti commented 7 years ago

durandadomia I see you got a little farther but still not successful :-( I will hope to re-try this soon ( I had no time this previous weekend.. hopefully this week or this coming weekend) Thank you so much for the clues you have found to get a little further.