Launch instance with a new server group via horizon is failed

Bug #1887593 reported by Yvonne Ding
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Incomplete
Medium
Lin Shuicheng

Bug Description

Brief Description
-----------------
Launch instance with a new server group via horizon is failed.

Severity
--------
Major

Steps to Reproduce
------------------
1. Login as Tenant
2. Go to Project > Compute > Server Groups page
3. Create a new server group
4. Verify the group appears in server groups table
5. Launch instance with the new server group

TC-name:

Expected Behavior
-----------------
Launch instance with the new server group successfully

Actual Behavior
----------------
Launch instance with the new server group failed

Reproducibility
---------------
reproducible

System Configuration
--------------------
Regular standard 2+2

Lab-name:
wcp-7-10

Branch/Pull Time/Commit
-----------------------
BUILD_ID="20200709T013419Z"

Timestamp/Logs
--------------
[2020-07-10 15:53:11,223] 61 DEBUG MainThread conftest.update_results:: ***Failure at test call: /home/svc-cgcsauto/wassp-repos.new/testcases/cgcs/CGCSAuto/utils/horizon/pages/project/compute/instancespage.py:77: AttributeError: 'NoneType' object has no attribute 'add'
***Details: server_groups_pg = <utils.horizon.pages.project.compute.servergroupspage.ServerGroupsPage object at 0x7f7de8bcb518>
policy = 'anti-affinity'

......
        instances_pg.create_instance(instance_name,
                                     source_name=guest_img,
                                     flavor_name=flavor_name,
                                     network_names=[mgmt_net_name],
> server_group_name=group_name)

testcases/functional/horizon/test_servergroups.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
utils/horizon/pages/project/compute/instancespage.py:255: in create_instance
    instance_form.addservergrp('Name', server_group_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <utils.horizon.pages.project.compute.instancespage.LaunchInstanceForm object at 0x7f7de8ddb518>
column_name = 'Name', name = 'test_groups_10-07-11-52-36'

    def addservergrp(self, column_name, name):
> self.server_grp_available_table.get_row(column_name, name).add()
E AttributeError: 'NoneType' object has no attribute 'add'

logs of .tar and video
https://files.starlingx.kube.cengn.ca/launchpad/1887589

Test Activity
-------------
stx.4.0 regression

Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.4.0 / medium - looks to be an openstack regression. Marking as stx.4.0 gating until the openstack team has a read-out

tags: added: stx.distro.openstack
description: updated
tags: added: stx.4.0
Changed in starlingx:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → yong hu (yhu6)
yong hu (yhu6)
Changed in starlingx:
assignee: yong hu (yhu6) → Lin Shuicheng (shuicheng)
Revision history for this message
Lin Shuicheng (shuicheng) wrote :

The same log url with LP1887589 "Create new instance failed via horizon"
https://bugs.launchpad.net/starlingx/+bug/1887589

Hi Yvonne,
I cannot reproduce the issue in my 2+2 system.
Here is the server group I created:

 Name ID Policy
 test 2f064608-fc88-4e47-9d32-730eea1484fb Anti Affinity
Here is the instance I created with the server group:
 Instance Name Image Name IP Address Flavor Key Pair Status Availability Zone Task Power State Age
Actions
 test_servergroup cirros 192.168.101.177 m1.tinny - Active nova None Running 2 minutes

Could you help double confirm the issue with latest build?
Or anything I missed to reproduce the issue? Thanks.

Changed in starlingx:
status: Triaged → Incomplete
Revision history for this message
Lin Shuicheng (shuicheng) wrote :

Mark as duplicate since both issue share the same log in the same machine.

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.