[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13730595#comment-13730595
 ] 

Girish Shilamkar commented on CLOUDSTACK-3829:
----------------------------------------------

Sheng,

I don't think we should be removing vpc.id as a parameter while creating 
network. Because then the network won't be created in VPC and beats the purpose 
of the test, which is to deploy a vm in VPC with shared network.
                
> [Automation] test_vpc_vm_life_cycle.py: TestVMLifeCycleSharedNwVPC failed 
> during create network command 
> --------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3829
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3829
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Automation, Test
>    Affects Versions: 4.2.0
>         Environment: Automation 
>            Reporter: Rayees Namathponnan
>            Assignee: Girish Shilamkar
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> test_vpc_vm_life_cycle.py: TestVMLifeCycleSharedNwVPC failed during create 
> network command 
> Observed below error in log 
> Error Message
> Execute cmd: createnetwork failed, due to: errorCode: 431, errorText:Network 
> offering can't be used for VPC networks
> Stacktrace
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 208, in 
> run
>     self.setUp()
>   File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 291, in 
> setUp
>     self.setupContext(ancestor)
>   File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 314, in 
> setupContext
>     try_run(context, names)
>   File "/usr/local/lib/python2.7/site-packages/nose/util.py", line 469, in 
> try_run
>     return func()
>   File 
> "/Repo_30X/ipcl/cloudstack/test/integration/component/test_vpc_vm_life_cycle.py",
>  line 978, in setUpClass
>     vpcid=cls.vpc.id
>   File 
> "/usr/local/lib/python2.7/site-packages/marvin/integration/lib/base.py", line 
> 1880, in create
>     return Network(apiclient.createNetwork(cmd).__dict__)
>   File 
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
>  line 1689, in createNetwork
>     response = self.connection.marvin_request(command, 
> response_type=response, method=method)
>   File 
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 
> 222, in marvin_request
>     response = jsonHelper.getResultObj(response.json(), response_type)
>   File "/usr/local/lib/python2.7/site-packages/marvin/jsonHelper.py", line 
> 148, in getResultObj
>     raise cloudstackException.cloudstackAPIException(respname, errMsg)
> cloudstackAPIException: Execute cmd: createnetwork failed, due to: errorCode: 
> 431, errorText:Network offering can't be used for VPC networks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to