Cannot change default port for nova-api (8773)

Asked by HP

Hey. I tried to change the port of nova-api, which is 8773, to a new one in nova.conf file, but it does not make any affect. It still runs on 8773, even after I restarted all services and computer. nay suggestions?

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

  • by HP
  • by HP
Revision history for this message
Brian Waldon (bcwaldon) said :
#1

Can you provide the contents of your nova.conf here?

Revision history for this message
HP (huy-pham-sc) said :
#2

Hey. yes, it's here:

--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--verbose=1
--s3_host=10.20.129.172
--rabbit_host=10.20.129.172
--cc_host=10.20.129.172
--ec2_url=http://10.20.129.172:8779/services/Cloud
--fixed_range=192.168.0.0/16
--network_size=8
--FAKE_subdomain=ec2
--routing_source_ip=10.20.129.172
--sql_connection=mysql://root:nova@10.20.129.172/nova
--iscsi_ip_prefix=192.168.

Revision history for this message
Brian Lamar (blamar) said :
#3

The flags you need to set to change the port is: ec2_listen_port

Revision history for this message
HP (huy-pham-sc) said :
#4

Hey. Thanks. Fixed.
By the way, I did not find "--ec2_listen_port", found only "--ec2_port" in the manual, and "--ec2_port" did not work; your suggestion worked. Why is "--ec2_listen_port" not in the manual?

link to manual:
http://docs.openstack.org/cactus/openstack-compute/admin/content/reference-for-flags-in-nova-conf.html

Revision history for this message
Brian Lamar (blamar) said :
#5

Hey HP, looks like we have a bit of duplication! Ack! ec2_port/ec2_listen_port need to be rectified in the code...also osapi_port/osapi_listen port.

I'll submit a ticket for this to be fixed in the code as well as in the documentation.

Great catch.

Revision history for this message
HP (huy-pham-sc) said :
#6

Thanks, Brain.
I have one quick question: How do I know what version of openstack I am using now?
During the installation, all I did was install nova-api, nova-network... packages and it did not say anything like bexar or cactus anywhere at all. I believe I am using cactus, but still did not find a convincing way to make sure that it is cactus. Really curious.

Revision history for this message
Brian Lamar (blamar) said :
#7

The way I usually tell is in the logs. For example in /var/log/nova/nova-api.log I see that when the nova-api daemon started it logged this:

2011-06-27 18:24:51,382 AUDIT nova.api [-] Starting nova-api node (version 2011.3-workspace:tarmac-20110625193807-d47px27v157scd8p)

I'm curious what yours says because I typically don't run the 'stable' releases, but instead the latest development release.

Revision history for this message
HP (huy-pham-sc) said :
#8

yes, mine says the same thing:
Starting nova-api node (version 2011.3-workspace:tarmac-20110623214429-vugs2578athkwbo7)

Tarmac? Never heard of this word.

Revision history for this message
Brian Lamar (blamar) said :
#9

Tarmac is our build system. This version line isn't as helpful as I thought :) I'll check and see if this can't be improved. Also, a nova-api --version from the command line might be nice.

Revision history for this message
HP (huy-pham-sc) said :
#10

nova-api --version returns an empty string.
I tried nova-manage --version, and it says: OpenStack Nova version: 2011.3-dev (2011.3-workspace:tarmac-20110623214429-vugs2578athkwbo7)
I just want to use a stable release to avoid bugs; tired of dealing with bugs already. Trying to find a way to ensure myself that I use cactus.

Revision history for this message
HP (huy-pham-sc) said :
#11

Hey Brian,
   So how do I make sure that I install the cactus version? By not adding the repository nova-core/trunk maybe? Trying to avoid the unstable ones.

Revision history for this message
Vish Ishaya (vishvananda) said :
#12

Yes, use the release or milestone repository instead of trunk

Vish

On Jun 28, 2011, at 11:21 AM, HP wrote:

> Question #162944 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/162944
>
> HP gave more information on the question:
> Hey Brian,
> So how do I make sure that I install the cactus version? By not adding the repository nova-core/trunk maybe? Trying to avoid the unstable ones.
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
HP (huy-pham-sc) said :
#13

Vish,
    More details, please. What does it look like?
        add-apt-repository ppa:nova-core/cactus????
        add-apt-repository ppa:nova-core/milestone????

Revision history for this message
Vish Ishaya (vishvananda) said :
#14

Cheat sheet here:

http://wiki.openstack.org/PPAs

On Jun 28, 2011, at 12:31 PM, HP wrote:

> Question #162944 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/162944
>
> Status: Answered => Open
>
> HP is still having a problem:
> Vish,
> More details, please. What does it look like?
> add-apt-repository ppa:nova-core/cactus????
> add-apt-repository ppa:nova-core/milestone????
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Can you help with this problem?

Provide an answer of your own, or ask HP for more information if necessary.

To post a message you must log in.