Subnets created in a VPC are not listed on issuing "euca-describe-subnets" cmd

Bug #1393292 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
High
Atul Moghe
R2.0
Fix Committed
Undecided
Atul Moghe

Bug Description

Build 2.0 2455 Ubuntu 12.04.3 Single node setup

Subnets created in a VPC are not listed on issuing "euca-describe-subnets" cmd

root@nodec27:~# euca-create-subnet -c 10.2.1.0/28 vpc-a22723dc
Subnet Subnet:subnet-d5c985fc created
root@nodec27:~#

root@nodec27:~# euca-describe-subnets -a
Subnet-id Vpc-id CidrBlock
--------- ------ ---------
root@nodec27:~#

root@nodec27:~# euca-describe-subnets subnet-d5c985fc
Subnet-id Vpc-id CidrBlock
--------- ------ ---------
root@nodec27:~#

nova-api.log:

root@nodec27:~# euca-describe-subnets subnet-d5c985fc
2014-11-17 08:45:49.727 1665 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.204.217.12
2014-11-17 08:45:49.745 1665 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.204.217.12
2014-11-17 08:45:49.767 1665 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.204.217.12
2014-11-17 08:45:49.958 1665 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.204.217.12
2014-11-17 08:45:49.980 1665 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.204.217.12
2014-11-17 08:45:49.995 1665 INFO nova.api.ec2 [req-6e979628-f60f-4926-bfff-d87210660265 a2a87183ccab41d291831bf7b9715f6e 633189b527b942fba6982410611325d9] 0.331251s 127.0.0.1 GET /services/Cloud/ CloudController:DescribeSubnets 200 [Boto/2.12.0 Python/2.7.3 Linux/3.8.0-29-generic] text/plain text/xml
2014-11-17 08:45:49.996 1665 INFO nova.ec2.wsgi.server [req-6e979628-f60f-4926-bfff-d87210660265 a2a87183ccab41d291831bf7b9715f6e 633189b527b942fba6982410611325d9] 127.0.0.1 "GET /services/Cloud/?AWSAccessKeyId=24fe3262227b4f7495f9e3407fe7e1fd&Action=DescribeSubnets&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-11-17T03%3A15%3A49Z&Version=2013-06-15&Signature=ZYHQxbhWjNnLYvUWKE%2BjfUqZipwU%2FMZmW6awhO172PI%3D HTTP/1.1" status: 200 len: 284 time: 0.3320339
Subnet-id Vpc-id CidrBlock
--------- ------ ---------
root@nodec27:~#

Tags: blocker vpc
Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :

Same issue with euca-describe-route-tables as well

root@nodec27:~# euca-create-route-table vpc-a22723dc
rtb-f78e25d7 vpc-a22723dc 10.2.1.0/24 local active
root@nodec27:~# euca-describe-route-tables
root@nodec27:~# euca-describe-route-tables rtb-f78e25d7
root@nodec27:~#
root@nodec27:~#

Changed in juniperopenstack:
assignee: Rudra Rugge (rudrarugge) → Atul Moghe (moghea)
Revision history for this message
Atul Moghe (moghea) wrote :

is it havna or icehouse? For nova we need to know openstack release

Revision history for this message
Atul Moghe (moghea) wrote :

This is fixed with latest R2.0/12.04 icehouse build. I am closing 2.0 scope.

Here is log from subnet_create_delete sanity test.
root@a5s5:~/contrail-test# PYTHONPATH=$PATH:$PWD:$PWD/scripts:$PWD/fixtures python -m testtools.run scripts.vpc.test_vpc.VpcSanityTests2.test_subnet_create_delete

[root@10.84.14.5] run: euca-create-subnet -c 10.2.3.0/24 vpc-d6a72f3d
[root@10.84.14.5] out: Subnet Subnet:subnet-84fffbf5 created
[root@10.84.14.5] out:

2014-12-05 15:54:27,182 - INFO - Create subnet with CIDR 10.2.3.0/24
2014-12-05 15:54:27,182 - INFO - Creating vn subnet-84fffbf5..
[root@10.84.14.5] run: euca-describe-subnets
[root@10.84.14.5] out: Subnet-id Vpc-id CidrBlock
[root@10.84.14.5] out: --------- ------ ---------
[root@10.84.14.5] out: subnet-84fffbf5 vpc-d6a72f3d 10.2.3.0/24
[root@10.84.14.5] out:

2014-12-05 15:54:30,812 - INFO - EC2 keys deleted for VPC
2014-12-05 15:54:32,331 - INFO -
2014-12-05 15:54:32,331 - INFO - END TEST : test_subnet_create_delete : PASSED[0:00:12]
2014-12-05 15:54:32,331 - INFO - --------------------------------------------------------------------------------

Revision history for this message
Atul Moghe (moghea) wrote :

On mainline also this works fine:
Snippnet for vpc test case with build 2494
[root@10.84.14.5] run: euca-create-subnet -c 10.2.3.0/24 vpc-a548fa10
[root@10.84.14.5] out: Subnet Subnet:subnet-e526f2ee created
[root@10.84.14.5] out:

2014-12-05 21:32:59,693 - INFO - Create subnet with CIDR 10.2.3.0/24
2014-12-05 21:32:59,693 - INFO - Creating vn subnet-e526f2ee..
[root@10.84.14.5] run: euca-describe-subnets
[root@10.84.14.5] out: Subnet-id Vpc-id CidrBlock
[root@10.84.14.5] out: --------- ------ ---------
[root@10.84.14.5] out: subnet-e526f2ee vpc-a548fa10 10.2.3.0/24
[root@10.84.14.5] out:

Changed in juniperopenstack:
status: New → Fix Committed
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.