Skip to content

CLOUDSTACK-10168 - VR duplicate entries in /etc/hosts when reusing VM name - #2366

Merged
yadvr merged 1 commit into
apache:masterfrom
bwsw:CLOUDSTACK-10168-2
Dec 20, 2017
Merged

CLOUDSTACK-10168 - VR duplicate entries in /etc/hosts when reusing VM name#2366
yadvr merged 1 commit into
apache:masterfrom
bwsw:CLOUDSTACK-10168-2

Conversation

@bwsw

@bwswbwsw commented Dec 19, 2017

Copy link
Copy Markdown
Contributor

Bug is fixed. Fixed typo 'adress' to 'address' everywhere which leads to correct generation for agent communication json dhcp command.

@rhtyd
@dagsonstebo

Take a look please. Fixes the bug reported by Dag Sonstebo for Basic zone but unable to test carefully for Advanced zone VR.

Tested in our pre-prod 4.10.

Create / abc (x.y.z.11), cde (x.y.z.13)
Remove / abc, cde
Create / cde -> /etc/hosts (x.y.z.11 -> cde, x.y.z.13 removed)

@bwswbwsw changed the title CLOUDSTACK-10168CLOUDSTACK-10168 - VR duplicate entries in /etc/hosts when reusing VM nameDec 19, 2017
@yadvr

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1430

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

return dbag
remove_key = None
for key, entry in dbag.iteritems():
if key <> 'id' and entry['host_name'] == data['host_name']:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<> is deprecated and removed in Python 3.x, please use != instead.

Bug is fixed. Fixed typo 'adress' to 'address' everywhere which leads to correct generation for agent communication json dhcp command.
@bwsw

bwsw commented Dec 20, 2017

Copy link
Copy Markdown
ContributorAuthor

@rhtyd code is fixed ( <> changed to != )

@yadvryadvr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code approved, subject to test results.

@yadvryadvr added this to the 4.11 milestone Dec 20, 2017

@yadvryadvr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, on redeploying an old VM with the same name, older entries are removing from /etc/hosts file.

@bwsw

bwsw commented Dec 20, 2017

Copy link
Copy Markdown
ContributorAuthor

@rhtyd
@wido
Also, I haven't found if IPv6 dns resolution is implemented in VR dnsmasq currently, at least ipv6 records are not written into /etc/hosts. Can you clarify?

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-1836)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 31616 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2366-t1836-kvm-centos7.zip
Smoke tests completed. 63 look OK, 4 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_01_vpc_privategw_aclFailure57.68test_privategw_acl.py
test_02_vpc_privategw_static_routesFailure243.89test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanupFailure153.24test_privategw_acl.py
test_04_rvpc_privategw_static_routesFailure309.27test_privategw_acl.py
test_02_create_template_with_checksum_sha1Error5.24test_templates.py
test_03_create_template_with_checksum_sha256Error5.24test_templates.py
test_04_create_template_with_checksum_md5Error5.22test_templates.py
test_01_vpc_remote_access_vpnError55.83test_vpc_vpn.py
test_hostha_kvm_host_recoveringError25.73test_hostha_kvm.py

@yadvr

Copy link
Copy Markdown
Member

Tests LGTM, merging based on two lgtms and results (ignoring known failures).

@yadvr
yadvr merged commit 80a6961 into apache:masterDec 20, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@bwsw@yadvr@blueorangutan@rafaelweingartner@wido