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

Looks like rpm bug for show progress bar 50% #498

Closed
JumpingYang001 opened this issue Aug 7, 2018 · 3 comments
Closed

Looks like rpm bug for show progress bar 50% #498

JumpingYang001 opened this issue Aug 7, 2018 · 3 comments

Comments

@JumpingYang001
Copy link

I found this issue when upgrade a package called omi:
Repro Steps:

  1. install old version: rpm -i https://github.com/Microsoft/omi/releases/download/v1.4.2-2/omi-1.4.2-2.ssl_100.ulinux.x64.rpm

  2. upgrade new omi version: rpm -Uvh https://github.com/Microsoft/omi/releases/download/v1.4.2-3/omi-1.4.2-3.ssl_100.ulinux.x64.rpm

[root@jumping-cent7 jumping]# rpm -Uvh omi-1.4.3-1.ssl_100.ulinux.x64.withsymbols.rpm
Preparing...                          ################################# [100%]
Unconfiguring omid (systemd) service ...
Removed symlink /etc/systemd/system/multi-user.target.wants/omid.service.
Deleting omi service account ...
Creating omi group ...
Creating omi service account ...
Updating ownership of previous files ...
Updating / installing...
   1:omi-1.4.3-1                      ################################# [ 50%]

************************************************************
* Warning: The certificate and keyfile were not generated  *
* since they already exist.                                *
************************************************************
omi already configured
chown: cannot access â/etc/opt/omi/creds/omi.keytabâ: No such file or directory
chown: cannot access â/etc/opt/omi/.credsâ: No such file or directory
chown: cannot access â/etc/opt/omi/.creds/ntlmâ: No such file or directory
2018-08-07 06:48:19 : Crontab no longer configured to update omi keytab.
2018-08-07 06:48:19 : Crontab configured to update omi keytab automatically
Configuring OMI service ...
Created symlink from /etc/systemd/system/multi-user.target.wants/omid.service to /usr/lib/systemd/system/omid.service.
Cleaning up / removing...
   2:omi-1.4.2-2                      ################################# [100%]
[root@jumping-cent7 jumping]#

Run with --percent shows fine:

[root@jumping-cent7 jumping]# rpm -Uvh omi-1.4.3-1.ssl_100.ulinux.x64.withsymbols.rpm --percent
Preparing...                          %% 0.000000
%% 50.000000
################################# [100%]
Unconfiguring omid (systemd) service ...
Removed symlink /etc/systemd/system/multi-user.target.wants/omid.service.
Updating / installing...
   1:omi-1.4.3-1                      %% 0.000000
%% 0.000549
%% 0.001064
%% 0.001612
%% 0.008568
%% 0.009582
%% 0.010484
%% 0.011086
%% 0.011718
%% 0.012586
%% 0.024155
%% 0.024749
%% 0.025298
%% 0.025830
%% 0.026361
%% 0.026860
%% 0.032146
%% 0.032661
%% 0.305550
%% 0.577873
%% 0.850197
%% 1.122521
%% 1.394845
%% 1.667168
%% 1.939492
%% 2.211816
%% 2.484139
%% 2.756463
%% 3.028787
%% 3.301111
%% 3.573434
%% 3.845758
%% 4.118082
%% 4.390406
%% 4.662729
%% 4.935053
%% 5.207377
%% 5.479701
%% 5.752024
%% 6.024348
%% 6.296672
%% 6.568995
%% 6.841319
%% 7.113643
%% 7.385966
%% 7.658290
%% 7.930614
%% 8.202938
%% 8.475261
%% 8.747585
%% 9.019909
%% 9.292233
%% 9.564556
%% 9.836880
%% 10.109204
%% 10.381527
%% 10.653852
%% 10.926175
%% 11.198499
%% 11.470822
%% 11.743146
%% 12.015471
%% 12.287793
%% 12.560118
%% 12.832440
%% 13.104765
%% 13.377089
%% 13.649411
%% 13.921736
%% 14.194059
%% 14.466383
%% 14.738708
%% 15.011030
%% 15.283355
%% 15.555678
%% 15.828001
%% 16.100327
%% 16.372650
%% 16.644972
%% 16.917297
%% 17.189621
%% 17.445818
%% 17.718693
%% 17.991016
%% 18.263342
%% 18.535666
%% 18.807989
%% 19.080313
%% 19.352636
%% 19.624960
%% 19.897284
%% 20.169607
%% 20.441931
%% 20.714254
%% 20.966854
%% 21.239771
%% 21.512094
%% 21.690056
%% 21.962948
%% 22.235271
%% 22.507595
%% 22.779919
%% 23.052242
%% 23.324568
%% 23.596889
%% 23.869213
%% 24.141539
%% 24.413862
%% 24.686186
%% 24.958509
%% 25.230833
%% 25.503155
%% 25.775480
%% 26.047806
%% 26.320127
%% 26.592451
%% 26.864777
%% 27.137098
%% 27.409422
%% 27.681747
%% 27.954069
%% 28.226393
%% 28.498718
%% 28.771040
%% 29.043365
%% 29.315689
%% 29.588011
%% 29.860336
%% 30.132660
%% 30.404985
%% 30.677307
%% 30.949631
%% 31.221956
%% 31.494278
%% 31.766602
%% 32.038925
%% 32.311249
%% 32.583572
%% 32.855900
%% 33.128220
%% 33.400543
%% 33.672871
%% 33.945190
%% 34.217514
%% 34.489841
%% 34.762161
%% 35.034485
%% 35.306812
%% 35.579132
%% 35.851460
%% 36.123783
%% 36.396103
%% 36.668430
%% 36.940754
%% 37.213074
%% 37.485401
%% 37.757725
%% 38.030045
%% 38.302372
%% 38.574696
%% 38.847019
%% 39.119343
%% 39.391666
%% 39.663990
%% 39.936314
%% 40.208637
%% 40.480961
%% 40.753284
%% 41.025608
%% 41.297932
%% 41.570255
%% 41.842579
%% 42.114906
%% 42.387226
%% 42.659550
%% 42.931877
%% 43.204197
%% 43.238255
%% 43.511127
%% 43.783451
%% 44.055775
%% 44.328098
%% 44.600422
%% 44.872746
%% 45.145069
%% 45.417397
%% 45.689716
%% 45.962040
%% 46.234367
%% 46.506687
%% 46.779015
%% 47.051338
%% 47.323658
%% 47.595985
%% 47.868309
%% 48.140629
%% 48.412956
%% 48.685280
%% 48.957600
%% 49.229927
%% 49.502251
%% 49.774570
%% 50.046898
%% 50.319218
%% 50.591545
%% 50.773251
%% 51.046139
%% 51.318462
%% 51.590782
%% 51.863110
%% 52.135433
%% 52.407753
%% 52.680080
%% 52.809025
%% 53.081917
%% 53.354240
%% 53.626568
%% 53.898888
%% 54.171211
%% 54.443539
%% 54.715858
%% 54.988182
%% 55.260509
%% 55.532829
%% 55.805153
%% 56.077480
%% 56.349800
%% 56.622124
%% 56.894451
%% 57.166775
%% 57.439095
%% 57.711422
%% 57.983746
%% 58.256065
%% 58.528393
%% 58.800716
%% 59.073036
%% 59.345364
%% 59.617687
%% 59.890007
%% 60.162334
%% 60.434658
%% 60.706978
%% 60.979305
%% 61.251629
%% 61.523949
%% 61.796276
%% 62.068600
%% 62.340919
%% 62.613251
%% 62.885571
%% 63.157890
%% 63.430222
%% 63.702541
%% 63.974865
%% 64.247192
%% 64.519516
%% 64.791832
%% 65.064163
%% 65.336487
%% 65.608803
%% 65.881134
%% 66.153458
%% 66.425774
%% 66.698105
%% 66.970428
%% 67.242752
%% 67.515076
%% 67.787399
%% 68.059723
%% 68.332047
%% 68.604370
%% 68.876694
%% 69.149017
%% 69.421341
%% 69.693665
%% 69.965988
%% 70.238312
%% 70.510635
%% 70.782959
%% 71.055283
%% 71.327606
%% 71.599930
%% 71.872253
%% 72.144577
%% 72.416901
%% 72.689224
%% 72.961548
%% 73.233871
%% 73.506195
%% 73.778519
%% 74.050842
%% 74.323166
%% 74.494186
%% 74.522934
%% 74.523483
%% 74.538734
%% 74.547020
%% 74.547783
%% 74.562233
%% 74.572701
%% 74.589211
%% 74.591469
%% 74.597168
%% 74.597687
%% 74.870575
%% 75.142899
%% 75.415222
%% 75.687546
%% 75.959869
%% 76.232193
%% 76.504517
%% 76.776840
%% 77.049164
%% 77.321487
%% 77.593811
%% 77.866135
%% 78.138458
%% 78.410782
%% 78.683105
%% 78.955429
%% 79.227753
%% 79.500076
%% 79.772400
%% 80.044724
%% 80.317047
%% 80.589371
%% 80.861694
%% 81.134018
%% 81.406342
%% 81.678665
%% 81.950989
%% 82.223312
%% 82.495636
%% 82.767960
%% 83.040283
%% 83.312607
%% 83.584938
%% 83.857254
%% 84.129578
%% 84.401909
%% 84.674225
%% 84.946548
%% 85.218880
%% 85.491196
%% 85.763519
%% 86.035851
%% 86.308167
%% 86.580490
%% 86.852821
%% 87.125137
%% 87.397469
%% 87.669792
%% 87.942108
%% 88.214439
%% 88.486763
%% 88.759079
%% 89.031410
%% 89.185852
%% 89.458755
%% 89.731079
%% 90.003410
%% 90.275726
%% 90.548050
%% 90.820381
%% 91.092697
%% 91.365021
%% 91.637352
%% 91.909668
%% 92.181992
%% 92.454323
%% 92.726639
%% 92.998970
%% 93.271294
%% 93.487968
%% 93.760872
%% 94.033195
%% 94.305519
%% 94.577843
%% 94.850166
%% 95.122490
%% 95.394814
%% 95.667137
%% 95.939461
%% 96.211784
%% 96.484108
%% 96.756432
%% 97.028755
%% 97.301079
%% 97.573402
%% 97.845726
%% 98.118050
%% 98.390373
%% 98.662697
%% 98.922935
%% 99.195862
%% 99.468185
%% 99.740509
%% 99.995163
%% 99.995728
%% 99.996246
%% 99.996773
%% 99.997307
%% 99.997856
%% 99.998421
%% 99.998947
%% 99.999489
%% 100.000000

************************************************************
* Warning: The certificate and keyfile were not generated  *
* since they already exist.                                *
************************************************************
omi already configured
chown: cannot access â/etc/opt/omi/creds/omi.keytabâ: No such file or directory
chown: cannot access â/etc/opt/omi/.credsâ: No such file or directory
chown: cannot access â/etc/opt/omi/.creds/ntlmâ: No such file or directory
2018-08-07 06:46:07 : Crontab no longer configured to update omi keytab.
2018-08-07 06:46:07 : Crontab configured to update omi keytab automatically
Configuring OMI service ...
Created symlink from /etc/systemd/system/multi-user.target.wants/omid.service to /usr/lib/systemd/system/omid.service.
Cleaning up / removing...
   1:omi-1.4.2-4                      %% 0.000000
%% 2.127660
%% 4.255319
%% 6.382979
%% 8.510638
%% 10.638298
%% 12.765958
%% 14.893617
%% 17.021276
%% 19.148937
%% 21.276596
%% 23.404255
%% 25.531916
%% 27.659575
%% 29.787233
%% 31.914892
%% 34.042553
%% 36.170212
%% 38.297874
%% 40.425533
%% 42.553192
%% 44.680851
%% 46.808510
%% 48.936169
%% 51.063831
%% 53.191490
%% 55.319149
%% 57.446808
%% 59.574467
%% 61.702126
%% 63.829784
%% 65.957443
%% 68.085106
%% 70.212761
%% 72.340424
%% 74.468079
%% 76.595749
%% 78.723404
%% 80.851067
%% 82.978729
%% 85.106384
%% 87.234047
%% 89.361702
%% 91.489365
%% 93.617020
%% 95.744682
%% 97.872337
%% 100.000000
[root@jumping-cent7 jumping]# 
@JumpingYang001
Copy link
Author

It seems the issue only happen on ct7, rh7, ora7, suse12 and their rpm version are 4.11 .

@ignatenkobrain
Copy link
Contributor

There was bug in RHBZ about this not so long time ago, but I can't find it.

Definitely it is fixed in upstream.

@JumpingYang001
Copy link
Author

ok, thanks for quick response, thanks very much!

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

No branches or pull requests

2 participants