Skip to content

config-drive: support user data on L2 networks#2615

Merged
yadvr merged 6 commits into
apache:4.11from
shapeblue:l2cfgdrive
May 9, 2018
Merged

config-drive: support user data on L2 networks#2615
yadvr merged 6 commits into
apache:4.11from
shapeblue:l2cfgdrive

Conversation

@nvazquez
Copy link
Copy Markdown
Contributor

@nvazquez nvazquez commented Apr 30, 2018

Description

This provides the ability to create L2 network providing ConfigDrive service.

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)

GitHub Issue/PRs

Screenshots (if appropriate):

image

How Has This Been Tested?

  • Create an L2 network offering using 'User Data' checkbox
  • Enable network offering
  • Create L2 network from the network offering
  • Deploy VM on network, verify ConfigDrive can be used

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
    Testing
  • I have added tests to cover my changes.
  • All relevant new and existing integration tests have passed.
  • A full integration testsuite with all test that can run on my environment has passed.

@PaulAngus
Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@PaulAngus 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-1983

@yadvr yadvr added this to the 4.11.1.0 milestone May 1, 2018
@yadvr yadvr assigned nvazquez and unassigned nvazquez May 2, 2018
@PaulAngus
Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@yadvr yadvr changed the title WIP: Supporting ConfigDrive user data on L2 networks config-drive: support user data on L2 networks May 4, 2018
nvazquez and others added 2 commits May 4, 2018 15:04
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This would allow configuring of config drive while creating a L2
network offering.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
yadvr added 2 commits May 4, 2018 15:39
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr
Copy link
Copy Markdown
Member

yadvr commented May 4, 2018

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

@yadvr
Copy link
Copy Markdown
Member

yadvr commented May 4, 2018

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

Comment thread ui/scripts/configuration.js Outdated
} else if ($guestTypeField.val() == 'L2') {
$useVpc.hide();
$supportedServices.hide();
$supportedServices.css('display', 'inline-block');
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@rhtyd what if we display a checkbox with label 'User data (ConfigDrive)'? If it is checked, we can set serviceProviderList parameter to ConfigDrive and if not we'll pass it blank. This way we avoid user selecting unsupported services from the UI. What do you think?

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.

Good idea, perhaps you or Ernie can improve the UI changes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, I can pick it up during the weekend

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.

Cool, Monday is fine too.

@DaanHoogland
Copy link
Copy Markdown
Contributor

code looks good so far (just in case I don't pass by anymore) I like the checkbox option to prevent the selection of unsupported services. Better would be if unsupported services wouldn't be visible but as long as it is only one there is no difference.

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-2605)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 22750 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2615-t2605-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Intermitten failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 66 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_vpc_site2site_vpn_multiple_options Failure 144.29 test_vpc_vpn.py
test_01_vpc_site2site_vpn Failure 166.57 test_vpc_vpn.py

@nvazquez
Copy link
Copy Markdown
Contributor Author

nvazquez commented May 5, 2018

@rhtyd @DaanHoogland @PaulAngus @borisstoyanov last commit includes the checkbox in the UI for User Data on L2 network offerings as shown in the screenshot on the PR description

@nvazquez
Copy link
Copy Markdown
Contributor Author

nvazquez commented May 6, 2018

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@nvazquez 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-2630)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 21669 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2615-t2630-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Smoke tests completed. 66 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_redundant_vpc_site2site_vpn Failure 204.99 test_vpc_vpn.py
test_01_vpc_site2site_vpn Failure 140.56 test_vpc_vpn.py

@yadvr
Copy link
Copy Markdown
Member

yadvr commented May 8, 2018

@DaanHoogland are you lgtm on the changes now?

@nvazquez
Copy link
Copy Markdown
Contributor Author

nvazquez commented May 8, 2018

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@nvazquez 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-2028

@borisstoyanov
Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@borisstoyanov borisstoyanov 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 review, lets see the test results

@apache apache deleted a comment from blueorangutan May 9, 2018
@blueorangutan
Copy link
Copy Markdown

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

Test Result Time (s) Test File

@yadvr yadvr merged commit bd89760 into apache:4.11 May 9, 2018
@nvazquez nvazquez deleted the l2cfgdrive branch April 6, 2020 14:48
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