create instance does not work in devstack delpoy with minimum required conf file

Bug #2018999 reported by Jan Jasek
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Confirmed
Undecided
Unassigned

Bug Description

In deployed openstack using steps from "https://docs.openstack.org/devstack/latest/" is not possible to create instance. After lot of hours there is still status "Build" and task "Spawning" (see in screenshot). It is probably due to local.conf (that is specified as a minimum required in manual):
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

After trying different local.conf, everything works great:
[[local|localrc]]
disable_all_services
enable_service c-api
enable_service c-bak
enable_service c-sch
enable_service c-vol
disable_service dstat
enable_service etcd3
enable_service file_tracker
enable_service g-api
enable_service horizon
enable_service key
enable_service memory_tracker
enable_service mysql
enable_service n-api
enable_service n-api-meta
enable_service n-cond
enable_service n-cpu
enable_service n-novnc
enable_service n-sch
disable_service ovn-controller
disable_service ovn-northd
disable_service ovs-vswitchd
disable_service ovsdb-server
enable_service placement-api
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service q-metering
disable_service q-ovn-metadata-agent
enable_service q-svc
enable_service rabbit
enable_service s-account
enable_service s-container
enable_service s-object
enable_service s-proxy
enable_service tempest
enable_service tls-proxy
ADMIN_PASSWORD="secretadmin"
DATABASE_PASSWORD="secretdatabase"
DEBUG_LIBVIRT_COREDUMPS="True"
ENABLE_VOLUME_MULTIATTACH="True"
FORCE_CONFIG_DRIVE="True"
GLANCE_USE_IMPORT_WORKFLOW="True"
LIBVIRT_TYPE="qemu"
LOGFILE="/opt/stack/logs/devstacklog.txt"
LOG_COLOR="False"
NOVA_VNC_ENABLED="True"
NOVNC_FROM_PACKAGE="True"
OVN_DBS_LOG_LEVEL="dbg"
Q_AGENT="openvswitch"
Q_ML2_PLUGIN_MECHANISM_DRIVERS="openvswitch"
Q_ML2_TENANT_NETWORK_TYPE="vxlan"
RABBIT_PASSWORD="secretrabbit"
SERVICE_PASSWORD="secretservice"
SWIFT_HASH="1234123412341234"
SWIFT_REPLICAS="1"
SWIFT_START_ALL_SERVICES="False"
USE_PYTHON3="True"
VERBOSE="True"
VERBOSE_NO_TIMESTAMP="True"
LIBS_FROM_GIT=cinder,devstack,glance,horizon,keystone,neutron,nova,placement,requirements,swift,tempest
enable_plugin neutron https://opendev.org/openstack/neutron

[[post-config|$NEUTRON_CONF]]
[DEFAULT]
global_physnet_mtu = 1430
[[test-config|$TEMPEST_CONFIG]]
[compute]
min_compute_nodes = 1

I am not sure if it is a bug but few days ago the minimum required local.conf file worked great. So there is probably some issue or specified local.conf in steps on DevStack is no longer "minimum required".

Revision history for this message
Jan Jasek (johnnyjj) wrote :
Revision history for this message
Martin Kopec (mkopec) wrote :
Changed in devstack:
status: New → Confirmed
Revision history for this message
Lukas Piwowarski (lukas-piwowarski) wrote :

I tried the solution that ykarel (thanks!) proposed and it worked.

1) Changing the /etc/nova/nova-cpu.conf
[libvirt]
live_migration_uri = qemu+ssh://stack@%s/system
cpu_model = Nehalem
cpu_mode = custom
virt_type = qemu # kvm -> qemu

[workarounds]
ibvirt_disable_apic = True

2) Restarting n-cpu
sudo systemctl restart devstack@n-cpu

Revision history for this message
Jan Jasek (johnnyjj) wrote :

Hi guys, thank you, it helped!

I don't know where this problem came from (I did it every time the same way - by step by step from https://docs.openstack.org/devstack/latest/).
It would be nice to solve it. So that the steps in the devstack tutorial lead to a fully working environment.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.