NetworkScenarioTest Ignores Flavor Reference while creating Instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
intel-nfv-ci-tests |
New
|
Undecided
|
Unassigned | ||
tempest |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have created a Test case which extends ScenarioManager
While creating Instance using below method NetworkScenarioTest ignores the Flavor references sent and creates instance with default FlavorRef from Config.
Here is how I am creating instance:
class TestServerNumaB
credentials = ['admin']
@classmethod
def setup_clients(cls):
cls.manager = cls.admin_manager
# Use admin client by default
def boot_instance(self, flavor=None):
}
if flavor is None:
I am not sure if i missing something.
I have a patch ready to fix it but not sure if I am calling it correctly. So just wanted to make sure that this is a bug.
I don't think you are calling the create_server method correctly. Looking at the function definition (https:/ /github. com/openstack/ tempest/ blob/master/ tempest/ scenario/ manager. py#L157- L159) I see that method receives these parameters:
name=None, image_id=None, flavor=None, validatable=False, wait_until=None, wait_on_ delete= True, clients=None, **kwargs
So the first thing I notice is that you are using wrong name for parameters. Also make sure you are actually passing it a flavor. I see you default value for flavor is None, and I have no idea what your method create_ flavor_ with_extra( ) is and if it is actually returning a valid flavor. so my guess is that you are sending None ad flavor, and that will result in the default image from the config file being used (https:/ /github. com/openstack/ tempest/ blob/master/ tempest/ common/ compute. py#L54- L55).
I'm closing this bug as invalid, if you still think it is a bug, please provide more info and reopen the bug.