[ https://issues.apache.org/jira/browse/CLOUDSTACK-3617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13719426#comment-13719426 ]
Prasanna Santhanam commented on CLOUDSTACK-3617: ------------------------------------------------ You will need to set the global configuration to true mysql> select name,value,description from configuration where name='vm.instancename.flag'\G *************************** 1. row *************************** name: vm.instancename.flag value: true description: Append guest VM display Name (if set) to the internal name of the VM 1 row in set (0.00 sec) > Test case test_custom_hostname.TestInstanceNameFlagTrue failed with > unexpected vmname > -------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-3617 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3617 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Automation > Affects Versions: 4.2.0 > Environment: Automation > 4.2 > Reporter: Rayees Namathponnan > Assignee: Prasanna Santhanam > Fix For: 4.2.0 > > > Below 2 test cases failed with unexpected vmname WRT to test case > integration.component.test_custom_hostname.TestInstanceNameFlagTrue.test_01_user_provided_hostname > > integration.component.test_custom_hostname.TestInstanceNameFlagTrue.test_02_instancename_from_default_configuration > > Observed below error > VM internal name should match with that of the format > -------------------- >> begin captured logging << -------------------- > testclient.testcase.TestInstanceNameFlagTrue: DEBUG: Deploying VM in account: > test-J0LLUE > testclient.testcase.TestInstanceNameFlagTrue: DEBUG: Checking if the virtual > machine is created properly or not? > testclient.testcase.TestInstanceNameFlagTrue: DEBUG: vm.displayname: TestVM, > original: TestVM > testclient.testcase.TestInstanceNameFlagTrue: DEBUG: select id from account > where uuid = 'fad8043b-9e3c-4dfb-ae9e-4c1da1bd2382'; > testclient.testcase.TestInstanceNameFlagTrue: DEBUG: select id from > vm_instance where uuid = '7816fa2a-45e1-4a56-a0a2-160a40df59bb'; > testclient.testcase.TestInstanceNameFlagTrue: DEBUG: Query result: 280 > testclient.testcase.TestInstanceNameFlagTrue: DEBUG: Internal name: > i-214-280-TestVM > --------------------- >> end captured logging << --------------------- > Stacktrace > File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run > testMethod() > File > "/data/Repo2/qa/cloudstack/test/integration/component/test_custom_hostname.py", > line 258, in test_01_user_provided_hostname > "VM internal name should match with that of the format" > File "/usr/local/lib/python2.7/unittest/case.py", line 494, in assertEqual > assertion_func(first, second, msg=msg) > File "/usr/local/lib/python2.7/unittest/case.py", line 902, in > assertMultiLineEqual > self.fail(self._formatMessage(msg, standardMsg)) > File "/usr/local/lib/python2.7/unittest/case.py", line 393, in fail > raise self.failureException(msg) > VM internal name should match with that of the format -- 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