Skip to content

Instantly share code, notes, and snippets.

@FlorianOtel
Created December 9, 2013 00:16
Show Gist options
  • Save FlorianOtel/7865507 to your computer and use it in GitHub Desktop.
Save FlorianOtel/7865507 to your computer and use it in GitHub Desktop.
devstack -- compute node
#### ./stack.sh trace
2013-12-08 00:39:21 + SERVICE_DIR=/opt/stack/status
2013-12-08 00:39:21 + [[ ! -d /opt/stack/status/stack ]]
2013-12-08 00:39:21 ++ ls /opt/stack/status/stack/n-cpu.failure /opt/stack/status/stack/n-novnc.failure /opt/stack/status/stack/q-agt.failure
2013-12-08 00:39:21 + failures='/opt/stack/status/stack/n-cpu.failure
2013-12-08 00:39:21 /opt/stack/status/stack/n-novnc.failure
2013-12-08 00:39:21 /opt/stack/status/stack/q-agt.failure'
2013-12-08 00:39:21 + for service in '$failures'
2013-12-08 00:39:21 ++ basename /opt/stack/status/stack/n-cpu.failure
2013-12-08 00:39:21 + service=n-cpu.failure
2013-12-08 00:39:21 + service=n-cpu
2013-12-08 00:39:21 + echo 'Error: Service n-cpu is not running'
2013-12-08 00:39:21 Error: Service n-cpu is not running
2013-12-08 00:39:21 + for service in '$failures'
2013-12-08 00:39:21 ++ basename /opt/stack/status/stack/n-novnc.failure
2013-12-08 00:39:21 + service=n-novnc.failure
2013-12-08 00:39:21 + service=n-novnc
2013-12-08 00:39:21 + echo 'Error: Service n-novnc is not running'
2013-12-08 00:39:21 Error: Service n-novnc is not running
2013-12-08 00:39:21 + for service in '$failures'
2013-12-08 00:39:21 ++ basename /opt/stack/status/stack/q-agt.failure
2013-12-08 00:39:21 + service=q-agt.failure
2013-12-08 00:39:21 + service=q-agt
2013-12-08 00:39:21 + echo 'Error: Service q-agt is not running'
2013-12-08 00:39:21 Error: Service q-agt is not running
2013-12-08 00:39:21 + '[' -n '/opt/stack/status/stack/n-cpu.failure
2013-12-08 00:39:21 /opt/stack/status/stack/n-novnc.failure
2013-12-08 00:39:21 /opt/stack/status/stack/q-agt.failure' ']'
2013-12-08 00:39:21 + echo 'More details about the above errors can be found with screen, with ./rejoin-stack.sh'
2013-12-08 00:39:21 More details about the above errors can be found with screen, with ./rejoin-stack.sh
2013-12-08 00:39:21 + set +o xtrace
2013-12-08 00:39:21 WARNING: EXTRA_OPTS is used
2013-12-08 00:39:21 stack.sh completed in 556 seconds.
############## The "n-cpu" screen
[fedora@fedora19-compute nova]$ cd /opt/stack/nova && sg libvirtd '/usr/bin/nova-compute --config-file /etc/nova/nova.conf' || echo "n-cpu failed to start" | tee "/opt/stack/status/stack/n-cpu.failure"
sh: /usr/bin/nova-compute: No such file or directory
n-cpu failed to start
[fedora@fedora19-compute nova]$
###### the local.conf for the compute node
[[local|localrc]]
SCREEN_LOGDIR=/opt/stack/log
LOGFILE=stack.sh.log
LOG_COLOR=False
#OFFLINE=true
RECLONE=yes
disable_all_services
#enable_service n-cpu quantum q-agt n-novnc qpid
enable_service neutron nova n-cpu quantum q-agt n-novnc qpid
HOST_NAME=fedora19-compute
HOST_IP=192.168.254.254
SERVICE_HOST_NAME=fedora19-controller
SERVICE_HOST=192.168.254.253
FLOATING_RANGE=192.168.100.0/24
Q_PLUGIN=ml2
#Q_ML2_TENANT_NETWORK_TYPE=vlan
#ENABLE_TENANT_VLANS=True
Q_ML2_TENANT_NETWORK_TYPE=vxlan
Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_types=vxlan)
Q_ML2_PLUGIN_MECHANISM_DRIVERS=opendaylight,logger
NEUTRON_REPO=https://github.com/CiscoSystems/neutron.git
NEUTRON_BRANCH=odl_ml2
#Q_PLUGIN=ml2
#Q_AGENT=openvswitch
#Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge,l2population
#Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_types=gre)
#Q_AGENT_EXTRA_SRV_OPTS=(local_ip=$HOST_IP)
Q_HOST=$SERVICE_HOST
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
KEYSTONE_AUTH_HOST=$SERVICE_HOST
KEYSTONE_SERVICE_HOST=$SERVICE_HOST
MYSQL_PASSWORD=mysql
RABBIT_PASSWORD=rabbit
QPID_PASSWORD=rabbit
SERVICE_TOKEN=service
SERVICE_PASSWORD=admin
ADMIN_PASSWORD=admin
EXTRA_OPTS=(scheduler_default_filters=AllHostsFilter)
#[[post-config|/etc/neutron/plugins/ml2/ml2_conf.ini]]
#[ml2_odl]
#url=http://192.168.254.1:8080/controller/nb/v2/neutron
#username=admin
#password=admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment