-
Notifications
You must be signed in to change notification settings - Fork 79
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
internal database must be set with dbdisk option in ap and in cli #277
Conversation
ce2c751
to
949164c
Compare
@miq-bot remove-label wip |
@ailisp there is another check requested in the same BZ- do not allow blank password |
I believe this will break ManageIQ appliance builds. I think we should come up with a way to allow this behavior through the CLI. For example if someone configures a logical volume and wants to put the database there (as we do on the ManageIQ appliance), we should allow them to do that. As I see it, the real issue is that we want the database on a separate filesystem not necessarily a separate disk. Unfortunately, we don't do any validation against filesystems so checking that case would be much more difficult. |
@yrudman I think it would be better to do this one in a separate PR. |
@carbonin yes, it is better to do password present validation in different PR |
@carbonin do you mean the device number of filesystem? In this question:
|
@yrudman Thanks for the note. Seems I should wait this PR merged then open another PR for checking password. otherwise some conflict will happen in prompts.rb |
@ailisp Generally, yes, but I don't think the place for that is in the cli class. If we want a more complete fix, we could edit the |
@ailisp you can create tracking branch: |
949164c
to
795d14e
Compare
@miq-bot add-label wip |
@@ -121,6 +123,11 @@ def copy_template(src, src_dir = self.class.postgresql_template, dest_dir = Post | |||
end | |||
end | |||
|
|||
def check_pg_mount_point | |||
is_mount_point = Class.new.include(LinuxAdmin::Mountable).mount_point_exists?(mount_point) |
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.
Can you not just use LinuxAdmin::LogicalVolume
here?
@@ -82,6 +83,7 @@ def initialize_postgresql_disk | |||
|
|||
def initialize_postgresql | |||
log_and_feedback(__method__) do | |||
check_pg_mount_point |
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.
I think this would make more sense as a check in activate
or even in ask_questions.
Right after choose disk we could print some error message unless disk || have_pg_mount_point?
@ailisp I think we can close the other PR. I would like to do the checking earlier though. |
eb88bda
to
84b62a7
Compare
b0f98c9
to
5c590a8
Compare
ee52e5a
to
99937e2
Compare
Checked commits ailisp/manageiq-gems-pending@7ae42c0~...99937e2 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 lib/gems/pending/appliance_console/cli.rb
|
@miq-bot remove-label wip |
ISSUE:
When setting internal database in appliance console cli, the user can set without given a --dbdisk option, which is not supported.
BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1431815
https://bugzilla.redhat.com/show_bug.cgi?id=1425153
\cc @yrudman @gtanzillo
@miq-bot add-label wip,bug