Contrail Platform Developers
Highlighted
Contrail Platform Developers

single node test install problem

‎07-14-2014 10:24 PM

Hi, I'm totally new to opencontrail and attempting to install a single node testbed contrail all on one vm server with 1.04 rpm package use VMplayer.

It restarted after 'fab install_contrail' and 'fab setup_all', but i can't logon.
Please help me....

the testbed.py is like this:
from fabric.api import env

#Management ip addresses of hosts in the cluster
host1 = 'root@192.168.112.133'

#External routers if any
#for eg.
#ext_routers = [('mx1', '10.204.216.253')]
ext_routers = []

#Autonomous system number
router_asn = 64512

#Host from which the fab commands are triggered to install and provision
host_build = 'root@192.168.112.133'

#Role definition of the hosts.
env.roledefs = {
    'all': [host1],
    'cfgm': [host1],
    'openstack': [host1],
    'control': [host1],
    'compute': [host1],
    'collector': [host1],
    'webui': [host1],
    'database': [host1],
    'build': [host_build],
}

#Openstack admin password
env.openstack_admin_password = 'secret123'

#Hostnames
env.hostnames = {
    'all': ['node']
}

env.password = 'ecor2014'
#Passwords of each host
env.passwords = {
    host1: 'ecor2014',

    host_build: 'ecor2014',
}

#For reimage purpose
env.ostypes = {
    host1:'centos',
}

#OPTIONAL BONDING CONFIGURATION
#==============================
#Inferface Bonding
#bond= {
#    host1 : { 'name': 'bond0', 'member': ['p2p0p0','p2p0p1','p2p0p2','p2p0p3'], 'mode':'balance-xor' },
#}

#OPTIONAL SEPARATION OF MANAGEMENT AND CONTROL + DATA
#====================================================
#Control Interface
#control = {
#    host1 : { 'ip': '192.168.10.1/24', 'gw' : '192.168.10.254', 'device':'eth0' },
#}

#Data Interface
#data = {
#    host1 : { 'ip': '192.161.10.1/24', 'gw' : '192.161.10.254', 'device':'bond0' },
#}

#To disable installing contrail interface rename package
#env.interface_rename = False

#To enable multi-tenancy feature
#multi_tenancy = True

#To enable haproxy feature
#haproxy = True

#To Enable prallel execution of task in multiple nodes
#do_parallel = True

# To configure the encapsulation priority. Default: MPLSoGRE
#env.encap_priority =  "'MPLSoUDP','MPLSoGRE','VXLAN'"
[root@node testbeds]#



and the install_contrail log is
[root@192.168.112.133] run: cat /etc/redhat-release
[root@192.168.112.133] out: CentOS release 6.4 (Final)
[root@192.168.112.133] out:

[root@192.168.112.133] run: yum -y --nogpgcheck --disablerepo=* --enablerepo=contrail_install_repo install contrail-interface-name
[root@192.168.112.133] out: Loaded plugins: fastestmirror, refresh-packagekit, security
[root@192.168.112.133] out: Loading mirror speeds from cached hostfile
[root@192.168.112.133] out: Setting up Install Process
[root@192.168.112.133] out: Resolving Dependencies
[root@192.168.112.133] out: --> Running transaction check
[root@192.168.112.133] out: ---> Package contrail-interface-name.noarch 0:1.04-498.centos will be installed
[root@192.168.112.133] out: --> Finished Dependency Resolution
[root@192.168.112.133] out:
[root@192.168.112.133] out: Dependencies Resolved
[root@192.168.112.133] out:
[root@192.168.112.133] out: ================================================================================
[root@192.168.112.133] out:  Package                  Arch    Version          Repository              Size
[root@192.168.112.133] out: ================================================================================
[root@192.168.112.133] out: Installing:
[root@192.168.112.133] out:  contrail-interface-name  noarch  1.04-498.centos  contrail_install_repo  3.0 k
[root@192.168.112.133] out:
[root@192.168.112.133] out: Transaction Summary
[root@192.168.112.133] out: ================================================================================
[root@192.168.112.133] out: Install       1 Package(s)
[root@192.168.112.133] out:
[root@192.168.112.133] out: Total download size: 3.0 k
[root@192.168.112.133] out: Installed size: 896  
[root@192.168.112.133] out: Downloading Packages:
[root@192.168.112.133] out: Running rpm_check_debug
[root@192.168.112.133] out: Running Transaction Test
[root@192.168.112.133] out: Transaction Test Succeeded
[root@192.168.112.133] out: Running Transaction
[root@192.168.112.133] out:
[root@192.168.112.133] out:   Installing : contrail-interface-name-1.04 [#############                ] 1/1
[root@192.168.112.133] out:   Installing : contrail-interface-name-1.04 [##########################   ] 1/1
[root@192.168.112.133] out:   Installing : contrail-interface-name-1.04-498.centos.noarch               1/1
[root@192.168.112.133] out:
[root@192.168.112.133] out:   Verifying  : contrail-interface-name-1.04-498.centos.noarch               1/1
[root@192.168.112.133] out:
[root@192.168.112.133] out: Installed:
[root@192.168.112.133] out:   contrail-interface-name.noarch 0:1.04-498.centos                              
[root@192.168.112.133] out:
[root@192.168.112.133] out: Complete!
[root@192.168.112.133] out:



the setup_all log is:

[root@192.168.112.133] out:
[root@192.168.112.133] out: [localhost] local: sudo mv /tmp/tmp_rzlTo/ifcfg-p2p1p0 /etc/contrail/
[root@192.168.112.133] out: [localhost] local: sudo chkconfig network on
[root@192.168.112.133] out: [localhost] local: sudo chkconfig supervisor-vrouter on
[root@192.168.112.133] out: [localhost] local: sudo sed 's/COLLECTOR=.*/COLLECTOR=None/g;s/dev=.*/dev=p2p1p0/g' /etc/contrail/agent_param.tmpl > agent_param.new
[root@192.168.112.133] out: [localhost] local: sudo mv agent_param.new /etc/contrail/agent_param
[root@192.168.112.133] out: [root@192.168.112.133] run: source /opt/contrail/api-venv/bin/activate && python /opt/contrail/utils/provision_vrouter.py --host_name node.dream.flab.fujitsu.co.jp --host_ip 192.168.112.133 --api_server_ip 192.168.112.133 --oper add --admin_user admin --admin_password secret123 --admin_tenant_name admin
[root@192.168.112.133] out: [localhost] local: sudo service libvirtd restart
[root@192.168.112.133] out: Stopping libvirtd daemon:      [  OK  ]
[root@192.168.112.133] out:
[root@192.168.112.133] out: Starting libvirtd daemon:      [  OK  ]
[root@192.168.112.133] out:
[root@192.168.112.133] out: [localhost] local: sudo ./contrail_setup_utils/compute-server-setup.sh
[root@192.168.112.133] out:

[root@192.168.112.133] Executing task 'prov_control_bgp'
[root@192.168.112.133] run: hostname
[root@192.168.112.133] out: node.dream.flab.fujitsu.co.jp
[root@192.168.112.133] out:

[root@192.168.112.133] run: python provision_control.py --api_server_ip 192.168.112.133 --api_server_port 8082 --host_name node.dream.flab.fujitsu.co.jp --host_ip 192.168.112.133 --router_asn 64512
[root@192.168.112.133] Executing task 'prov_external_bgp'
[root@192.168.112.133] Executing task 'prov_metadata_services'
[root@192.168.112.133] run: python /opt/contrail/utils/provision_linklocal.py --admin_user admin         --admin_password contrail123 --linklocal_service_name metadata         --linklocal_service_ip 169.254.169.254         --linklocal_service_port 80         --ipfabric_service_ip 192.168.112.133         --ipfabric_service_port 8775         --oper add
[root@192.168.112.133] out: Created.UUID is 72445099-82f6-4e3e-b92f-273aa6b03338
[root@192.168.112.133] out:

[root@192.168.112.133] Executing task 'prov_encap_type'
[root@192.168.112.133] run: python /opt/contrail/utils/provision_encap.py --admin_user admin     --admin_password contrail123     --encap_priority MPLSoUDP,MPLSoGRE,VXLAN      --oper add
[root@192.168.112.133] out: Updated.{"global-vrouter-config": {"href": "http://127.0.0.1:8082/global-vrouter-config/72445099-82f6-4e3e-b92f-273aa6b03338", "uuid": "72445099-82f6-4e3e-b92f-273aa6b03338"}}
[root@192.168.112.133] out:

Rebooting the compute nodes after setup all.
[root@192.168.112.133] Executing task 'compute_reboot'

Warning: run() received nonzero return code 1 while executing 'rpm -qi contrail-openstack-dashboard '!

The openstack-status is like:

[root@node utils]# openstack-status
== Nova services ==
openstack-nova-api:           active
openstack-nova-cert:          active
openstack-nova-compute:       dead
openstack-nova-network:       dead (disabled on boot)
openstack-nova-scheduler:     active
openstack-nova-volume:        dead (disabled on boot)
openstack-nova-conductor:     active
== Glance services ==
openstack-glance-api:         active
openstack-glance-registry:    active
== Keystone service ==
openstack-keystone:           active
== Horizon service ==
openstack-dashboard:          404
== Quantum services ==
quantum-server:               active
== Cinder services ==
openstack-cinder-api:         active
openstack-cinder-scheduler:   active
openstack-cinder-volume:      inactive (disabled on boot)
== Support services ==
mysqld:                       active
httpd:                        active
libvirtd:                     active
rabbitmq-server:              active
memcached:                    active
== Keystone users ==
Warning keystonerc not sourced

Could anyone help me out of this, thanks in advance!

2 REPLIES 2
Highlighted
Contrail Platform Developers

Re: single node test install problem

‎08-26-2014 05:23 PM

I'm also having an issue installing contrail on a single node.

 

Here is my testbed.py (sanitized):

 

from fabric.api import env

#Management ip addresses of hosts in the cluster
host1 = 'root@192.0.2.69'

#External routers if any
#for eg.
#ext_routers = [('mx1', '10.204.216.253')]
ext_routers = []

#Autonomous system number
router_asn = 64512

#Host from which the fab commands are triggered to install and provision
host_build = 'root@192.0.2.69'

#Role definition of the hosts.
env.roledefs = {
'all': [host1],
'cfgm': [host1],
'openstack': [host1],
'control': [host1],
'compute': [host1],
'collector': [host1],
'webui': [host1],
'database': [host1],
'build': [host_build],
}

#Openstack admin password
env.openstack_admin_password = 'REDACTED'

#Hostnames
env.hostnames = {
'all': ['contrail01.local']
}

env.password = 'REDACTED'
#Passwords of each host
env.passwords = {
host1: 'REDACTED',

host_build: 'REDACTED',
}

#For reimage purpose
env.ostypes = {
host1:'centos',
}

#OPTIONAL BONDING CONFIGURATION
#==============================
#Inferface Bonding
#bond= {
# host1 : { 'name': 'bond0', 'member': ['p2p0p0','p2p0p1','p2p0p2','p2p0p3'], 'mode':'balance-xor' },
#}

#OPTIONAL SEPARATION OF MANAGEMENT AND CONTROL + DATA
#====================================================
#Control Interface
#control = {
# host1 : { 'ip': '192.168.10.1/24', 'gw' : '192.168.10.254', 'device':'eth0' },
#}

#Data Interface
#data = {
# host1 : { 'ip': '192.161.10.1/24', 'gw' : '192.161.10.254', 'device':'bond0' },
#}

#To disable installing contrail interface rename package
#env.interface_rename = False

#To enable multi-tenancy feature
#multi_tenancy = True

#To enable haproxy feature
#haproxy = True

#To Enable prallel execution of task in multiple nodes
#do_parallel = True

# To configure the encapsulation priority. Default: MPLSoGRE
#env.encap_priority = "'MPLSoUDP','MPLSoGRE','VXLAN'"

 

And here is the output when I try to run fab setup_all:

[root@contrail01 utils]# fab setup_all
[root@192.0.2.69] Executing task 'setup_all'
[root@192.0.2.69] Executing task 'bash_autocomplete_systemd'
[root@192.0.2.69] run: uname -a
[root@192.0.2.69] out: Linux contrail01.local 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@192.0.2.69] out:

[root@192.0.2.69] Executing task 'setup_database'
[root@192.0.2.69] run: PASSWORD=REDACTED python setup-vnc-database.py --self_ip 192.0.2.69 --seed_list 192.0.2.69
[root@192.0.2.69] out: [localhost] local: grep -q 'None' /etc/hosts || echo 'None None contrail01.local' >> /etc/hosts
[root@192.0.2.69] out: [localhost] local: sudo sed 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config > config.new
[root@192.0.2.69] out: [localhost] local: sudo mv config.new /etc/selinux/config
[root@192.0.2.69] out: [localhost] local: setenforce 0
[root@192.0.2.69] out: setenforce: SELinux is disabled
[root@192.0.2.69] out:
[root@192.0.2.69] out: Warning: local() encountered an error (return code 1) while executing 'setenforce 0'
[root@192.0.2.69] out:
[root@192.0.2.69] out: [localhost] local: sudo chkconfig iptables off
[root@192.0.2.69] out: [localhost] local: sudo iptables --flush
[root@192.0.2.69] out: [localhost] local: sudo sed '/DAEMON_COREFILE_LIMIT=.*/d' /etc/sysconfig/init > /etc/sysconfig/init.new
[root@192.0.2.69] out: [localhost] local: sudo mv /etc/sysconfig/init.new /etc/sysconfig/init
[root@192.0.2.69] out: [localhost] local: echo DAEMON_COREFILE_LIMIT="'unlimited'" >> /etc/sysconfig/init
[root@192.0.2.69] out: kernel.core_pattern = /var/crashes/core.%e.%p.%h.%t
[root@192.0.2.69] out: [localhost] local: grep -q 'kernel.core_pattern = /var/crashes/core.%e.%p.%h.%t' /etc/sysctl.conf || echo 'kernel.core_pattern = /var/crashes/core.%e.%p.%h.%t' >> /etc/sysctl.conf
[root@192.0.2.69] out: [localhost] local: sysctl -p
[root@192.0.2.69] out: net.ipv4.ip_forward = 0
[root@192.0.2.69] out: net.ipv4.conf.default.rp_filter = 1
[root@192.0.2.69] out: net.ipv4.conf.default.accept_source_route = 0
[root@192.0.2.69] out: kernel.sysrq = 0
[root@192.0.2.69] out: kernel.core_uses_pid = 1
[root@192.0.2.69] out: net.ipv4.tcp_syncookies = 1
[root@192.0.2.69] out: error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
[root@192.0.2.69] out: error: "net.bridge.bridge-nf-call-iptables" is an unknown key
[root@192.0.2.69] out: error: "net.bridge.bridge-nf-call-arptables" is an unknown key
[root@192.0.2.69] out: kernel.msgmnb = 65536
[root@192.0.2.69] out: kernel.msgmax = 65536
[root@192.0.2.69] out: kernel.shmmax = 68719476736
[root@192.0.2.69] out: kernel.shmall = 4294967296
[root@192.0.2.69] out: kernel.core_pattern = /var/crashes/core.%e.%p.%h.%t
[root@192.0.2.69] out:
[root@192.0.2.69] out: Warning: local() encountered an error (return code 255) while executing 'sysctl -p'
[root@192.0.2.69] out:
[root@192.0.2.69] out: [localhost] local: mkdir -p /var/crashes
[root@192.0.2.69] out: Ignoring failure kernel core dump
[root@192.0.2.69] out: [localhost] local: source ../bin/activate && pip install *
[root@192.0.2.69] out: /bin/sh: line 0: cd: /opt/contrail/analytics-venv/archive: No such file or directory
[root@192.0.2.69] out:
[root@192.0.2.69] out: Warning: local() encountered an error (return code 1) while executing 'source ../bin/activate && pip install *'
[root@192.0.2.69] out:
[root@192.0.2.69] out: [localhost] local: source ../bin/activate && pip install *
[root@192.0.2.69] out: /bin/sh: line 0: cd: /opt/contrail/api-venv/archive: No such file or directory
[root@192.0.2.69] out:
[root@192.0.2.69] out: Warning: local() encountered an error (return code 1) while executing 'source ../bin/activate && pip install *'
[root@192.0.2.69] out:
[root@192.0.2.69] out: Traceback (most recent call last):
[root@192.0.2.69] out: File "setup-vnc-database.py", line 95, in <module>
[root@192.0.2.69] out: main()
[root@192.0.2.69] out: File "setup-vnc-database.py", line 91, in main
[root@192.0.2.69] out: SetupVncDatabase(args_str)
[root@192.0.2.69] out: File "setup-vnc-database.py", line 41, in __init__
[root@192.0.2.69] out: setup_obj.do_setup()
[root@192.0.2.69] out: File "/opt/contrail/contrail_installer/contrail_setup_utils/setup.py", line 1244, in do_setup
[root@192.0.2.69] out: self.fixup_config_files()
[root@192.0.2.69] out: File "/opt/contrail/contrail_installer/contrail_setup_utils/setup.py", line 656, in fixup_config_files
[root@192.0.2.69] out: raise ArgumentError('%s does not appear to be a cassandra source directory' % cassandra_dir)
[root@192.0.2.69] out: NameError: global name 'ArgumentError' is not defined
[root@192.0.2.69] out:


Fatal error: run() received nonzero return code 1 while executing!

Requested: PASSWORD=REDACTED python setup-vnc-database.py --self_ip 192.0.2.69 --seed_list 192.0.2.69
Executed: /bin/bash -l -c "cd /opt/contrail/contrail_installer && PASSWORD=REDACTED python setup-vnc-database.py --self_ip 192.0.2.69 --seed_list 192.0.2.69"

Aborting.
Disconnecting from 192.0.2.69... done.

 

Any ideas?

 

 

--
Chris Jones
JNCIE-ENT #272
Former JNCIP-SP
Former CCIE #25655
Former Juniper Ambassador
Highlighted
Contrail Platform Developers

Re: single node test install problem

‎08-29-2014 01:08 AM

Hi Chris,

 

Did the install_contrail provided any errors? It seems that your database is not properly deployed.

Feedback