Hide Forgot
Description of problem: This is a feature request. right now rhc-fix-missing-frontend requires user interaction from the administration to run the command. Here is the output: ======================================================== # rhc-fix-missing-frontend 521e1a525004469bc80000c9 Rebuilding the frontend for: 521e1a525004469bc80000c9 Hit 'y' to continue, anything else to abort. y Fixing gear: 521e1a525004469bc80000c9 ... Done ======================================================== It would be good to have an option, like -y, to pass the program to do this automatically. That way we can script this to fix problems without having to be on the instance. Version-Release number of selected component (if applicable): rhc-node-1.13.6-1.el6oso.x86_64 How reproducible: very, run the command Expected results: ======================================================== # rhc-fix-missing-frontend -y 521e1a525004469bc80000c9 Rebuilding the frontend for: 521e1a525004469bc80000c9 Fixing gear: 521e1a525004469bc80000c9 ... Done ======================================================== Additional info: I am proposing -y, but am not bound to it. There are other command that are rhc-* that might need this option added to them as well.
Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/f89c7cc0491f3920695e5590a5569783e32944e1 Bug 1005510 - Added '-y' option to rhc-fix-missing-frontend
[root@ip-10-236-180-13 ~]# rhc-fix-missing-frontend -y 522e88e7a9d92ce9ba0000b9 Rebuilding the frontend for: -y 522e88e7a9d92ce9ba0000b9 Fixing gear: 522e88e7a9d92ce9ba0000b9 ... Done [root@ip-10-236-180-13 ~]# rhc-fix-missing-frontend 522e88e7a9d92ce9ba0000b9 -y Rebuilding the frontend for: 522e88e7a9d92ce9ba0000b9 -y Fixing gear: 522e88e7a9d92ce9ba0000b9 ... Done The original issue is fixed, it will not need interactive action for this command. But it will list the option -y as a gear, please refer to the result above. And maybe -b is a better option for this, since most of the rhc tools using -b|--bypass for skip the interactive action. And I think it also needs an usage update for this option. [root@ip-10-236-180-13 ~]# rhc-fix-missing-frontend Usage: /usr/bin/rhc-fix-missing-frontend uuid uuid uuid ...
Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/8d279aaedcf180449757670a8269388e15782d37 Bug 1005510 - Changed non-interactive param name for rhc-fix-missing-frontend to -b
# rhc-fix-missing-frontend 5238058d6cd292253f0002ad Rebuilding the frontend for: 5238058d6cd292253f0002ad Fixing gear: 5238058d6cd292253f0002ad ... Done # rhc-fix-missing-frontend -b 5238058d6cd292253f0002ad Rebuilding the frontend for: 5238058d6cd292253f0002ad Hit 'y' to continue, anything else to abort. y Fixing gear: 5238058d6cd292253f0002ad ... Done The command will be interactive only when the option -b present.
Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/3baf3d7034c454a0ecb7bb103ab544b502cfba0a Bug 1005510 - Skip interactive mode when -b option is set
[root@ip-10-178-10-155 ~]# rhc-fix-missing-frontend 523eab0ae6e4dc9cf40000f1 Rebuilding the frontend for: 523eab0ae6e4dc9cf40000f1 Hit 'y' to continue, anything else to abort. y Fixing gear: 523eab0ae6e4dc9cf40000f1 ... Done [root@ip-10-178-10-155 ~]# rhc-fix-missing-frontend -b 523eab0ae6e4dc9cf40000f1 Rebuilding the frontend for: 523eab0ae6e4dc9cf40000f1 Fixing gear: 523eab0ae6e4dc9cf40000f1 ... Done The issue has been fixed on devenv_3810. Move bug to verified.