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

VNM Hook - ignored clean.d #3510

Closed
7 tasks
feldsam opened this issue Jul 12, 2019 · 1 comment · Fixed by #3557
Closed
7 tasks

VNM Hook - ignored clean.d #3510

feldsam opened this issue Jul 12, 2019 · 1 comment · Fixed by #3557

Comments

@feldsam
Copy link
Contributor

feldsam commented Jul 12, 2019

Description
On network clean operation, hook in driver clean.d directory is not executed

To Reproduce
create a hook in clean.d directory and undeploy or terminate last VM using a particular network

Expected behavior
Hook in clean.d directory is executed

Details

  • Affected Component: [Network]
  • Hypervisor: [KVM]
  • Version: [development]

Log:

Sun Jul 14 11:34:06 2019 [Z0][VM][I]: New state is ACTIVE
Sun Jul 14 11:34:06 2019 [Z0][VM][I]: New LCM state is PROLOG
Sun Jul 14 11:34:19 2019 [Z0][VM][I]: New LCM state is BOOT
Sun Jul 14 11:34:19 2019 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/548/deployment.0
Sun Jul 14 11:34:20 2019 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Sun Jul 14 11:34:23 2019 [Z0][VMM][I]: pre: Executed "sudo brctl addbr onebr6".
Sun Jul 14 11:34:23 2019 [Z0][VMM][I]: pre: Executed "sudo ip link set onebr6 up".
Sun Jul 14 11:34:23 2019 [Z0][VMM][I]: pre: Executed "sudo ip link add link team0 name team0.406 mtu 9000 type vlan id 406 ".
Sun Jul 14 11:34:23 2019 [Z0][VMM][I]: pre: Executed "sudo ip link set team0.406 up".
Sun Jul 14 11:34:23 2019 [Z0][VMM][I]: pre: Executed "sudo brctl addif onebr6 team0.406".
Sun Jul 14 11:34:23 2019 [Z0][VMM][I]: pre: Running /var/tmp/one/vnm/802.1Q/pre.d/pre
Sun Jul 14 11:34:23 2019 [Z0][VMM][I]: ExitCode: 0
Sun Jul 14 11:34:23 2019 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Sun Jul 14 11:34:26 2019 [Z0][VMM][I]: ExitCode: 0
Sun Jul 14 11:34:26 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Sun Jul 14 11:34:27 2019 [Z0][VMM][I]: ExitCode: 0
Sun Jul 14 11:34:27 2019 [Z0][VMM][I]: Successfully execute network driver operation: post.
Sun Jul 14 11:34:27 2019 [Z0][VM][I]: New LCM state is RUNNING
Sun Jul 14 11:34:42 2019 [Z0][VM][I]: New LCM state is SHUTDOWN_UNDEPLOY
Sun Jul 14 11:34:48 2019 [Z0][VMM][I]: ExitCode: 0
Sun Jul 14 11:34:48 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: shutdown.
Sun Jul 14 11:34:48 2019 [Z0][VMM][I]: clean: Executed "sudo ip link delete team0.406".
Sun Jul 14 11:34:48 2019 [Z0][VMM][I]: clean: Executed "sudo ip link delete onebr6".
Sun Jul 14 11:34:48 2019 [Z0][VMM][I]: ExitCode: 0
Sun Jul 14 11:34:48 2019 [Z0][VMM][I]: Successfully execute network driver operation: clean.
Sun Jul 14 11:34:48 2019 [Z0][VM][I]: New LCM state is EPILOG_UNDEPLOY
Sun Jul 14 11:34:53 2019 [Z0][VM][I]: New state is UNDEPLOYED
Sun Jul 14 11:34:53 2019 [Z0][VM][I]: New LCM state is LCM_INIT

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
@feldsam
Copy link
Contributor Author

feldsam commented Jul 14, 2019

When I replace filter_driver.deactivate to hm.deactivate then hook is called.

filter_driver.run_hooks(ARGV, template64) if filter_driver.deactivate == 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants