[Openstack] Error launching instances
John Smith
lbalbalba at gmail.com
Fri Nov 29 14:25:22 UTC 2013
On Fri, Nov 29, 2013 at 3:03 PM, Razique Mahroua
<razique.mahroua at gmail.com> wrote:
>
> Hey :)
>
Hi.
Im starting to wonder if im not just missing some basic steps here.
What im doing basically is this :
$ cat localrc
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=tokentoken
LOGFILE=$DEST/logs/stack.sh.log
SCREEN_LOGDIR=$DEST/logs/screen
$ ./stack.sh
$ wget https://launchpadlibrarian.net/83303699/cirros-0.3.0-i386-disk.img
$ glance image-create --name=cirros-0.3.0-i386 --is-public=true
--container-format=bare --disk-format=qcow2 <
cirros-0.3.0-i386-disk.img
$ nova boot --flavor m1.nano --image cirros-0.3.0-i386 myvm
$ nova show myvm
Should that do it, or am I missing something here ? Im a complete
openstack newbee here.
>
> can you show me the file?
>
you mean 'devstack/files/dnsmasq-for-baremetal-from-nova-network.conf'
? It just contains these three lines :
enable-tftp
tftp-root=/tftpboot
dhcp-boot=pxelinux.0
>
> the conf file is not a mandatory argument. If you don't specify neither
> explicit arguments from the command line, nor from a config file, then
> dnsmasq uses the values it has been compiled w/
> so removing that flag * should * do it.
>
Ok, I ran the command again, but now without the '--conf-file=' flag,
but I still get the same error:
$ sudo nova-rootwrap /etc/nova/rootwrap.conf env
CONFIG_FILE=["/etc/nova/nova.conf"] NETWORK_ID=1 dnsmasq
--strict-order --bind-interfaces
--pid-file=/opt/stack/data/nova/networks/nova-br100.pid
--listen-address=10.0.0.1 --except-interface=lo
--dhcp-range=set:private,10.0.0.2,static,255.255.255.0,120s
--dhcp-lease-max=256
--dhcp-hostsfile=/opt/stack/data/nova/networks/nova-br100.conf
--dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro
--domain=novalocal
Traceback (most recent call last):
File "/usr/bin/nova-dhcpbridge", line 10, in <module>
sys.exit(main())
File "/opt/stack/nova/nova/cmd/dhcpbridge.py", line 100, in main
default_config_files=jsonutils.loads(os.environ['CONFIG_FILE']))
File "/opt/stack/nova/nova/openstack/common/jsonutils.py", line 166, in loads
return json.loads(s)
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
dnsmasq: lease-init script returned exit code 1
More information about the Openstack
mailing list