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
Fixes #10161 - Convert foreman-installer config to scenario #996
Fixes #10161 - Convert foreman-installer config to scenario #996
Conversation
mbacovsky
commented
Jan 27, 2016
- updated dependency constraint on Kafo
- updated scenario paths
Depends on theforeman/foreman-installer#163 |
7ed994a
to
3008252
Compare
The script in |
This PR's not mergeable, please rebase it. I tried to build it as-is, but hit the following error during parameter export: ** Execute /builddir/build/BUILD/foreman-installer-1.11.0/_build/options.asciidoc /usr/share/gems/bin/kafo-export-params -c config/foreman.yaml -f asciidoc > /builddir/build/BUILD/foreman-installer-1.11.0/_build/options.asciidoc /usr/share/gems/gems/kafo_parsers-0.0.5/lib/kafo_parsers/puppet_module_parser.rb:32:in `initialize': uninitialized constant KafoParsers::PuppetModuleParser::ModuleName (NameError) from /usr/share/gems/gems/kafo_parsers-0.0.5/lib/kafo_parsers/puppet_module_parser.rb:18:in `new' from /usr/share/gems/gems/kafo_parsers-0.0.5/lib/kafo_parsers/puppet_module_parser.rb:18:in `parse' from /usr/share/gems/gems/kafo-0.7.1/lib/kafo/puppet_module.rb:51:in `parse' from /usr/share/gems/gems/kafo-0.7.1/lib/kafo/configuration.rb:87:in `block in modules' from /usr/share/gems/gems/kafo-0.7.1/lib/kafo/configuration.rb:87:in `map' from /usr/share/gems/gems/kafo-0.7.1/lib/kafo/configuration.rb:87:in `modules' from /usr/share/gems/gems/kafo-0.7.1/bin/kafo-export-params:90:in `print_out' from /usr/share/gems/gems/kafo-0.7.1/bin/kafo-export-params:40:in `execute' from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run' from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run' from /usr/share/gems/gems/kafo-0.7.1/bin/kafo-export-params:135:in `' from /usr/share/gems/bin/kafo-export-params:23:in `load' from /usr/share/gems/bin/kafo-export-params:23:in `' rake aborted! Command failed with status (1): [/usr/share/gems/bin/kafo-export-params -c ...] This seems to indicate that a file of some sort is missing, but the SRPM I'm using looks OK. Could you check this builds properly? Edit: SRPM at https://fedorapeople.org/~domcleal/foreman/rpm_10161/ |
the same is happening in the DEB build modeled after this PR. |
3008252
to
abed03d
Compare
I rebased the PR. While investigating it I found there is a bug in
|
I created foreman-installer tarball on clean CentOS7 box and the package built okay with the data: http://koji.katello.org/koji/taskinfo?taskID=420604 |
@mbacovsky I didn't build it from hand but see the Jenkins output in #1015 |
Thanks, I've been able to build it now. I had an old _build/ dir in my foreman-installer checkout that was being re-used, so after the kafo_parsers fix I could see that it was missing a manifest that should've been present in more recent modules. |
%files | ||
%defattr(-,root,root,-) | ||
%doc README.* LICENSE | ||
%config %attr(600, root, root) %{_sysconfdir}/foreman/%{name}.yaml | ||
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/foreman/%{name}-answers.yaml | ||
%config %attr(600, root, root) %{_sysconfdir}/foreman/installer-scenarios.d/foreman.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package needs to install and own the installer-scenarios.d directory as it isn't owned by anything else. Ideally perhaps it'd be under /etc/foreman-installer/scenarios.d/ to match the log file layout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I updated this PR and foreman-installer PR to use /etc/foreman-installer/scenarios.d/
.
abed03d
to
d4738c9
Compare
%files | ||
%defattr(-,root,root,-) | ||
%doc README.* LICENSE | ||
%config %attr(600, root, root) %{_sysconfdir}/foreman/%{name}.yaml | ||
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/foreman/%{name}-answers.yaml | ||
%dir %{_sysconfdir}/foreman-installer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick, prefer %{name} rather than repeating foreman-installer here and below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in 5ea91c1.
[test] to verify it builds after the installer change was merged. |
[test] fixed tests as I'd temporarily disabled a Jenkins job because of the change. |
Merged as c3f00e7, thanks @mbacovsky. |