Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix VR bootstrapping/connection state in KVM #3524

Merged
merged 2 commits into from Jul 29, 2019

Conversation

svenvogel
Copy link
Contributor

Description

   <channel type='unix'>
     <source mode='bind' path='/var/lib/libvirt/qemu/r-1750-VM.org.qemu.guest_agent.0'/>
     <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
     <alias name='channel0'/>
     <address type='virtio-serial' controller='0' bus='0' port='1'/>
   </channel>

after investigation of the bootstrap process i think i found this problem. there is no startup from the qemu-guest-agent. we need them in connected state for the patch.sh script.

image

the problems seems to be the startup of the "qemu-guest-agent". since this is not an really systemd service more than an sysvinit. the service will be started with "systemctl enable --now qemu-guest agent". this will be redirected to systemd-sysv-install. normally "--now" should enable and start the service. i think with this redirection to systemd-sysv-install there is no option for the startup.

image
image

  • last one is to capture the error from the module load kvm pci hotplug

Use actually master, build a SystemVM and try to deploy them

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)

Screenshots (if appropriate):

How Has This Been Tested?

@svenvogel svenvogel changed the title [WIP DO NOT MERGE] Fix Virtual Router bootstrapping/connection state in KVM [WIP DO NOT MERGE] Fix VR bootstrapping/connection state in KVM Jul 25, 2019
sed -i -e "/^s0:2345:respawn.*/d" /etc/inittab
sed -i -e "/6:23:respawn/a\s0:2345:respawn:/sbin/getty -L 115200 ttyS0 vt102" /etc/inittab
systemctl enable --now qemu-guest-agent
Copy link
Member

Choose a reason for hiding this comment

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

Minor nit: The --now does the same, enables and starts it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rhtyd yes normally it should but qemu-guest-agent it a sysvinit and unfortunately with this redirect there is no startup.

[root@kvm08 /]# /lib/systemd/systemd-sysv-install --help
systemd-sysv-install version 1.7.4 - Copyright (C) 1997-2000 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public License.

usage:   systemd-sysv-install <enable|disable|is-enabled> [name]

@rohityadavcloud rohityadavcloud added this to the 4.13.0.0 milestone Jul 26, 2019
@rohityadavcloud
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

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

@rohityadavcloud
Copy link
Member

@svenvogel is this work in progress or ready for review?

@blueorangutan
Copy link

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

@rohityadavcloud
Copy link
Member

@blueorangutan test

@blueorangutan
Copy link

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

@svenvogel svenvogel changed the title [WIP DO NOT MERGE] Fix VR bootstrapping/connection state in KVM Fix VR bootstrapping/connection state in KVM Jul 26, 2019
@svenvogel
Copy link
Contributor Author

@rhtyd yes its ready. there is nothing from me. :)

@blueorangutan
Copy link

Trillian test result (tid-228)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41063 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3524-t228-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_hostha_kvm.py
Smoke tests completed. 75 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_04_rvpc_privategw_static_routes Failure 971.62 test_privategw_acl.py
test_hostha_enable_ha_when_host_in_maintenance Error 304.77 test_hostha_kvm.py

@rohityadavcloud
Copy link
Member

@blueorangutan test

@blueorangutan
Copy link

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

@rohityadavcloud
Copy link
Member

Tests lgtm. Can you review @shwstppr @anuragaw @borisstoyanov

@blueorangutan
Copy link

Trillian test result (tid-232)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 30143 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3524-t232-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_internal_lb.py
Smoke tests completed. 76 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_04_rvpc_internallb_haproxy_stats_on_all_interfaces Error 201.78 test_internal_lb.py

@rohityadavcloud
Copy link
Member

Tests LGTM

Copy link
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 changes and Travis results

@rohityadavcloud rohityadavcloud merged commit bf7e595 into apache:master Jul 29, 2019
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.

None yet

4 participants