Skip to content

Remove rolling-maintenance service from debian rules - #3984

Merged
andrijapanicsb merged 1 commit into
apache:masterfrom
shapeblue:fixservice
Apr 4, 2020
Merged

Remove rolling-maintenance service from debian rules#3984
andrijapanicsb merged 1 commit into
apache:masterfrom
shapeblue:fixservice

Conversation

@nvazquez

@nvazqueznvazquez commented Mar 23, 2020

Copy link
Copy Markdown
Contributor

Description

The cloudstack-rolling-maintenance service fails on ubuntu while packaging.

Fixes: #3981

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?

~/cloudstack/packaging# ./build-deb.sh

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

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

@DaanHoogland

Copy link
Copy Markdown
Contributor

@nvazquez does this mean we will not support rolling maintenance on ubuntu? (do update needed!)

@blueorangutan

Copy link
Copy Markdown

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

@DaanHooglandDaanHoogland added this to the 4.14.0.0 milestone Mar 24, 2020

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

I had the same issue when building packages on Ubuntu 18.04. Removing -pcloudstack-rolling-maintenance@ solved the issues.

Error:

dh_systemd_enable -pcloudstack-management -pcloudstack-agent -pcloudstack-usage -pcloudstack-rolling-maintenance@
dh_systemd_enable: Requested unknown package cloudstack-rolling-maintenance@ via -p/--package, expected one of: cloudstack-common cloudstack-management cloudstack-agent cloudstack-usage cloudstack-docs cloudstack-marvin cloudstack-integration-tests
dh_systemd_enable: unknown option or error during option parsing; aborting
debian/rules:144: recipe for target 'override_dh_systemd_enable' failed
make[1]: *** [override_dh_systemd_enable] Error 255

@GabrielBrascher
GabrielBrascher self-requested a review March 25, 2020 05:51
@nvazquez

Copy link
Copy Markdown
ContributorAuthor

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

@andrijapanicsb

Copy link
Copy Markdown
Contributor

@nvazquez are we good here?
@weizhouapache can you review also please/LGTM it?

@andrijapanicsb

Copy link
Copy Markdown
Contributor

anybody tested on Ubuntu 16 (any need to do so)?

@weizhouapache

Copy link
Copy Markdown
Member

@nvazquez are we good here?
@weizhouapache can you review also please/LGTM it?

is this ready for review/approve ?

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

Yes, ready for review. I haven't updated as was having failures non related to the PR to build an ubuntu18 environment. Would be good to test in ubuntu 16 as well

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

Update: finally built environment with ubuntu 18 KVM hosts and verified the rolling maintenance service works as expected

@nvazquez
nvazquez marked this pull request as ready for review March 25, 2020 18:07
@andrijapanicsb
andrijapanicsb self-requested a review March 25, 2020 18:15

@andrijapanicsbandrijapanicsb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM
(Ubuntu 18.04 - also the API was briefly tested to verify the rolling maintenance was not broken)

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

The rolling maintenance service is included as part of the cloudstack-agent package, it was mistakinly added as a package to enable by the dh_system_enable call. The fix is simply removing the call to enable the not existing package from the rules script

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

I have tested it on ubuntu 18.04, it works.

Based on @nvazquez 's test with the rolling maintenance, it is good.

@apacheapache deleted a comment from blueorangutanMar 26, 2020
@apacheapache deleted a comment from blueorangutanMar 26, 2020
@apacheapache deleted a comment from andrijapanicsbMar 26, 2020
@apacheapache deleted a comment from blueorangutanMar 26, 2020
@blueorangutan

Copy link
Copy Markdown

@andrijapanicsb 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-1314)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 28237 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3984-t1314-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_global_settings.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_host_maintenance.py
Smoke tests completed. 74 look OK, 3 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_UpdateConfigParamWithScopeError0.06test_global_settings.py
test_02_vpc_privategw_static_routesFailure133.54test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanupFailure142.41test_privategw_acl.py
test_04_rvpc_privategw_static_routesFailure203.34test_privategw_acl.py
test_02_cancel_host_maintenace_with_migration_jobsFailure165.43test_host_maintenance.py

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

@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-1325)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 27895 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3984-t1325-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_global_settings.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_host_maintenance.py
Smoke tests completed. 74 look OK, 3 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_UpdateConfigParamWithScopeError0.11test_global_settings.py
test_02_vpc_privategw_static_routesFailure125.98test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanupFailure128.01test_privategw_acl.py
test_04_rvpc_privategw_static_routesFailure190.47test_privategw_acl.py
test_02_cancel_host_maintenace_with_migration_jobsFailure171.13test_host_maintenance.py

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@apacheapache deleted a comment from blueorangutanMar 28, 2020
@apacheapache deleted a comment from blueorangutanMar 28, 2020
@apacheapache deleted a comment from blueorangutanMar 28, 2020
@blueorangutan

Copy link
Copy Markdown

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

@apacheapache deleted a comment from blueorangutanMar 28, 2020
@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos7 ✔debian. JID-1100

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@andrijapanicsb

Copy link
Copy Markdown
Contributor

@nvazquez this needs some love, asap, please

@andrijapanicsb

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@andrijapanicsb 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: ✔centos7 ✔debian. JID-1124

@andrijapanicsb

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@andrijapanicsb 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-1356)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 45907 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3984-t1356-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Smoke tests completed. 83 look OK, 0 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File

@apacheapache deleted a comment from blueorangutanApr 4, 2020
@andrijapanicsb

Copy link
Copy Markdown
Contributor

Finally...
Merging based on 3 x LGTMs/Approvals, manual and automated regression tests.

@andrijapanicsb
andrijapanicsb merged commit 0c4bd53 into apache:masterApr 4, 2020
@nvazquez
nvazquez deleted the fixservice branch April 6, 2020 14:32
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.

Cannot build packages with latest master on Ubuntu 18.04

7 participants

@nvazquez@blueorangutan@DaanHoogland@andrijapanicsb@weizhouapache@GabrielBrascher@svenvogel