nova-objectstore ignores flags in /etc/nova/nova.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
When I start nova-objectstore the daemon listens on a different IP address and port from what I have specified in the nova config file. Starting the daemon with or without upstart yields the same result.
What I expect
- nova-objectstore to listen on the IP address as specified by --s3_host in /etc/nova/nova.conf
- nova-objectstore to listen on the port as specified by --s3_port in /etc/nova/nova.conf
- nova-objectstore should listen on the IP address as specified by --my_ip if --s3_host is not specified in /etc/nova/nova.conf
What happens
- nova-objectstore listens on port 3333 on my server's primary IP address
Testing
The relevant flags:
root@host:~# grep -E '^--(s3_
--my_
--s3_
--s3_port=6666
Starting nova-objectstore as Upstart does:
root@host:~# nova-objectstore --uid $(getent passwd nova | cut -f3 -d:) --gid $(getent passwd nova | cut -f4 -d:) --pidfile /var/run/
/usr/
import pkg_resources
2011-08-03 13:30:24,956 INFO nova.wsgi [-] Started S3 Objectstore on 10.55.59.2:3333
Port/IP address listing:
root@host:~# ss -lntp | grep -E '3333|6666'
0 128 10.55.59.2:3333 *:* users:(
Package version:
root@host:~# dpkg-query --show nova-objectstore
nova-
OS release:
root@host:~# cat /etc/lsb-release
DISTRIB_
DISTRIB_
DISTRIB_
DISTRIB_
Hmm, this looks like a packaging bug. Can you try starting it the same way that the other services are started and see if it works?
exec su -c "nova-objectstore --flagfile= /etc/nova/ nova.conf" nova
it looks like the objectstore upstart script was never converted
Vish
On Aug 3, 2011, at 6:04 AM, Andrew Glen-Young wrote:
> Public bug reported: (host|port) |my_ip) ' /etc/nova/nova.conf 10.55.58. 254 10.55.58. 254 nova/nova- objectstore. pid --flagfile= /etc/nova/ nova.conf --nodaemon --logfile= /var/log/ nova/nova- objectstore. log python2. 7/dist- packages/ paste/deploy/ loadwsgi. py:8: UserWarning: Module paste was already imported from None, but /usr/lib/ python2. 7/dist- packages is being added to sys.path ("nova- objectstor" ,17777, 3)) RELEASE= 11.10 CODENAME= oneiric DESCRIPTION= "Ubuntu oneiric (development branch)" /bugs.launchpad .net/bugs/ 820360
>
> When I start nova-objectstore the daemon listens on a different IP
> address and port from what I have specified in the nova config file.
> Starting the daemon with or without upstart yields the same result.
>
> What I expect
>
> - nova-objectstore to listen on the IP address as specified by --s3_host in /etc/nova/nova.conf
> - nova-objectstore to listen on the port as specified by --s3_port in /etc/nova/nova.conf
> - nova-objectstore should listen on the IP address as specified by --my_ip if --s3_host is not specified in /etc/nova/nova.conf
>
> What happens
>
> - nova-objectstore listens on port 3333 on my server's primary IP
> address
>
>
> Testing
>
> The relevant flags:
>
> root@host:~# grep -E '^--(s3_
> --my_ip=
> --s3_host=
> --s3_port=6666
>
> Starting nova-objectstore as Upstart does:
>
> root@host:~# nova-objectstore --uid $(getent passwd nova | cut -f3 -d:) --gid $(getent passwd nova | cut -f4 -d:) --pidfile /var/run/
> /usr/lib/
> import pkg_resources
> 2011-08-03 13:30:24,956 INFO nova.wsgi [-] Started S3 Objectstore on 10.55.59.2:3333
>
> Port/IP address listing:
>
> root@host:~# ss -lntp | grep -E '3333|6666'
> 0 128 10.55.59.2:3333 *:* users:(
>
> Package version:
>
> root@host:~# dpkg-query --show nova-objectstore
> nova-objectstore 2011.3~d3-0ubuntu1
>
> OS release:
>
> root@host:~# cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_
> DISTRIB_
> DISTRIB_
>
> ** Affects: nova
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Nova Bug
> Team, which is subscribed to OpenStack Compute (nova).
> https:/
>
> Title:
> nova-objectstore ignores flags in /etc/nova/nova.conf
>
> Status in OpenStack Compute (Nova):
> New
>
> Bug description:
> When I start nova-objectstore the daemon listens on a different IP
> address and port from what I have specified in the nova config file.
> Starting the daemon with or without upstart yields the same result.
>
> What I expect
>
> - nova-objectstore to listen on the IP address as specified by --s3_host in /etc/nova/nova.conf
> - nova-objectstore to listen on the port as specified by --s3_port in /etc/nova/nova.conf
> - nova-objectstore should listen on the IP ...