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

ncm-spma: yumng: Major improvements #1190

Merged
merged 3 commits into from
Nov 29, 2017
Merged

Conversation

jnovy
Copy link

@jnovy jnovy commented Oct 31, 2017

  • run all operations in one single transaction
  • use saner repository consistency check and display
    less criptic message once YUM repos are broken
  • always refresh YUM metadata
  • use less verbose and more readable output
  • warn in case transaction (not) installed/removed
    expected packages
  • avoid breaking transaction by protected packages
    (mainly systemd)

- run all operations in one single transaction
- use saner repository consistency check and display
  less criptic message once YUM repos are broken
- always refresh YUM metadata
- use less verbose and more readable output
- warn in case transaction (not) installed/removed
  expected packages
- avoid breaking transaction by protected packages
  (mainly systemd)
@hpcugentbot
Copy link

Can one of the admins verify this patch?

@stdweird
Copy link
Member

test this please

@@ -12,17 +12,14 @@ use warnings;
use NCM::Component;
our $EC = LC::Exception::Context->new->will_store_all;
our @ISA = qw(NCM::Component);
use EDG::WP4::CCM::Path 16.8.0 qw(unescape);
use EDG::WP4::CCM::Element qw(unescape);
Copy link
Member

Choose a reason for hiding this comment

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

please revert

Copy link
Author

Choose a reason for hiding this comment

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

It would help to describe why ;-)

Copy link
Member

Choose a reason for hiding this comment

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

}
# End here in case of --noaction.
if ($NoAction) {
return 1;
Copy link
Member

Choose a reason for hiding this comment

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

add a info message of some sort

Copy link
Author

@jnovy jnovy Oct 31, 2017

Choose a reason for hiding this comment

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

The message is already there:

[INFO] Dry run, no changes will be performed (--noaction flag set)

Copy link
Author

@jnovy jnovy Oct 31, 2017

Choose a reason for hiding this comment

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

and:

[INFO] running component: spma
---------------------------------------------------------
[INFO] would mark state of component as needing to run
[INFO] note: running component spma in noaction mode

in the component directly. Assuming we don't need to add this message for the third time in the log.

@jnovy
Copy link
Author

jnovy commented Oct 31, 2017

FYI: this code runs in our env for several months en-masse now. It's well tested. Feel free to report any problems should you encounter some.

@stdweird
Copy link
Member

@jnovy can you also cleanup the description? it still has the template text

@@ -180,12 +114,12 @@ sub Configure

my $repos = $config->getElement(REPOS_TREE)->getTree();
my $t = $config->getElement(CMP_TREE)->getTree();

Copy link
Member

Choose a reason for hiding this comment

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

Can you strip this white-space please.

# Display system info
if ( defined($t->{quattor_os_release}) ) {
$self->info("target OS build: ", $t->{quattor_os_release});
}

Copy link
Member

Choose a reason for hiding this comment

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

Can you strip this white-space please.

@jnovy
Copy link
Author

jnovy commented Nov 1, 2017

@stdweird - Ok, I will clean up the description (I will catch up with you via email to avoid churn here)

@jrha - I will, thanks for noticing

Jindrich Novy added 2 commits November 1, 2017 11:26
This change improves resiliency and speed by running all installs
and removals in one transation. There were consistency issues in
previous version when yumng executed updates in multiple steps.
That was causing update to fail despite it could be successfully
executed in one step. Full list of changes follow.

- run all operations in one single transaction
- use saner repository consistency check and display
  less cryptic message once YUM repos are broken
- always refresh YUM metadata
- use less verbose and more readable output
- warn in case transaction installed/removed unexpected packages
- avoid breaking transaction by protected packages
  (mainly systemd)
@jnovy jnovy changed the title Major improvements to yumng SPMA module. ncm-spma: Major improvements to yumng SPMA module. Nov 1, 2017
@jnovy
Copy link
Author

jnovy commented Nov 7, 2017

Seems automatic tests got stuck at some point?

@jrha
Copy link
Member

jrha commented Nov 8, 2017

@hpcugentbot test this please

@jrha jrha added this to the 17.12 milestone Nov 27, 2017
@jrha jrha changed the title ncm-spma: Major improvements to yumng SPMA module. ncm-spma: yumng: Major improvements Nov 29, 2017
@jrha jrha merged commit 2904400 into quattor:master Nov 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants