Skip to content

Fix hostname is localhost in some VRs#3422

Merged
yadvr merged 1 commit into
apache:4.11from
ustcweizhou:vr-localhost
Jun 26, 2019
Merged

Fix hostname is localhost in some VRs#3422
yadvr merged 1 commit into
apache:4.11from
ustcweizhou:vr-localhost

Conversation

@ustcweizhou
Copy link
Copy Markdown
Contributor

Description

In some virtual routers, 'hostname -f' returns 'localhost'. The hostname is also 'localhost' in /var/log/messages

This change can fix the issue in new VRs.

To fix the issue in running VRs, please execute following commands

sed -i "/^127.0.0.1/d" /etc/hosts
sed -i "/^127.0.1.1/d" /etc/hosts
echo -e "127.0.0.1\tlocalhost" >> /etc/hosts
echo -e "127.0.1.1\t$(hostname)" >> /etc/hosts
# restart rsyslog
/etc/init.d/rsyslog restart

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

@yadvr yadvr added this to the 4.13.0.0 milestone Jun 25, 2019
@yadvr
Copy link
Copy Markdown
Member

yadvr commented Jun 25, 2019

@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.

Copy link
Copy Markdown
Contributor

@shwstppr shwstppr left a comment

Choose a reason for hiding this comment

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

LGTM based on code change

Copy link
Copy Markdown
Contributor

@anuragaw anuragaw left a comment

Choose a reason for hiding this comment

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

LGTM
(The PR is for 4.11 and needs to be forwarded to master for 4.13)

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Jun 25, 2019

@anuragaw sometimes authors send PRs to older branches, in which case we forward merge the PR after testing/review.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✖centos6 ✔centos7 ✔debian. JID-23

@svenvogel
Copy link
Copy Markdown
Contributor

LGTM!

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Jun 25, 2019

@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-26

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Jun 25, 2019

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-22)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36718 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3422-t22-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 67 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_03_vpc_privategw_restart_vpc_cleanup Failure 226.03 test_privategw_acl.py
test_04_rvpc_privategw_static_routes Failure 988.85 test_privategw_acl.py
test_04_rvpc_network_garbage_collector_nics Failure 305.29 test_vpc_redundant.py

@apache apache deleted a comment from blueorangutan Jun 26, 2019
@yadvr
Copy link
Copy Markdown
Member

yadvr commented Jun 26, 2019

Verified tests LGTM, merging now.

@yadvr yadvr merged commit e76266e into apache:4.11 Jun 26, 2019
@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-29)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 34124 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3422-t29-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Smoke tests completed. 69 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

Slair1 pushed a commit to ippathways/cloudstack that referenced this pull request Jan 29, 2020
In some virtual routers, 'hostname -f' returns 'localhost'. The hostname is also 'localhost' in `/var/log/messages`. This change can fix the issue in new VRs.
Sign up for free to 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.

6 participants