Need to test security groups with source-group rules
Bug #1118617 reported by
Andrea Frittoli
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Won't Fix
|
Wishlist
|
Andrea Frittoli |
Bug Description
Related to nova issue https:/
This scenario shall be tested both in test_security_
description: | updated |
Changed in tempest: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in tempest: | |
assignee: | nobody → Andrea Frittoli (andrea-frittoli) |
Changed in tempest: | |
status: | Confirmed → In Progress |
Changed in tempest: | |
importance: | Medium → Wishlist |
To post a comment you must log in.
Ok, I just tried to test it (from the referenced
1/ Create a group -----+- ------- -----+ -----+- ------- -----+ -----+- ------- -----+
=========
[kashyap@foobar devstack-2]$ nova secgroup-create test test
+----+-
| Id | Name | Description |
+----+-
| 2 | test | test |
+----+-
=========
2/ Add a rule add-group- rule test test icmp -1 -1 ------- +------ -----+- ------- -+----- -----+- ------- ------+ ------- +------ -----+- ------- -+----- -----+- ------- ------+ ------- +------ -----+- ------- -+----- -----+- ------- ------+
=========
[kashyap@foobar devstack-2]$ nova secgroup-
+------
| IP Protocol | From Port | To Port | IP Range | Source Group |
+------
| ICMP | -1 | -1 | | test |
+------
[kashyap@foobar devstack-2]$
=========
3/ Get an image and add it to glance mattdm. fedorapeople. org/cloud- images/ Fedora18- Cloud-x86_ 64-latest. qcow2 Cloud-x86_ 64-latest. qcow2 ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- ------- ---+--- ------- ------- -+----- ------+ ------- -+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- ------- ---+--- ------- ------- -+----- ------+ ------- -+ 9fdd-4522- a29e-e6a308d72e 66 | cirros- 0.3.1-x86_ 64-uec | ami | ami | 25165824 | active | 0d4a-4ea8- 8750-d57599ad40 30 | cirros- 0.3.1-x86_ 64-uec- kernel | aki | aki | 4955792 | active | 3eec-4b06- 83d3-fb625bb2d7 ac | cirros- 0.3.1-x86_ 64-uec- ramdisk | ari | ari | 3714968 | active | 5d8a-4b48- a8a3-10af4cdfb9 fb | fedora18 | qcow2 | bare | 228196352 | active | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- ------- ---+--- ------- ------- -+----- ------+ ------- -+
=========
[kashyap@foobar ~]$ wget -c http://
[kashyap@foobar ~]$ glance image-create --name fedora18 --is-public true \
> --disk-format qcow2 --container-format bare \
> < Fedora18-
=========
[kashyap@foobar devstack-2]$ glance image-list
+------
| ID | Name | Disk Format | Container Format | Size | Status |
+------
| a43e5eed-
| 2c1607d6-
| 1dc216f7-
| 0863717d-
+------
[kashyap@foobar devstack-2]$
=========
4/ Boot an instance: 5d8a-4b48- a8a3-10af4cdfb9 fb --flavor 1 \
=========
[kashyap@foobar devstack-2]$ nova boot --image 0863717d-
> --security-group test f18vm1
=========
At this point, it's kind of just hung there
From a different terminal, I see the state: ------- ------- ------- ------- ----+-- ------+ ------- -+----- ------- +------ ------- +------ ----+ ------- ------- ------- ------- ----+-- ------+ ------- -+----- ------- +------ ------- +------ ----+ bf85-4c25- b209-522f1a1b6e ef | f18vm1 | BUILD | scheduling | NOSTATE | | ------- ------- ------- ------- ----+-- ------+ ------- -+----- ------- +------ ------- +------ ----+
=========
[kashyap@foobar devstack-2]$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 206eb180-
+------
=========
Result:
~~~~~~
After a long time, the above"nova boot" times out with:
ERROR: HTTPConnectionP ool(host= '<IPADDR- DIFFERENT- THAN-br100' , port=8774): Request timed out. (timeout=600.0)
...