#47990 lib389 - add function to do upgrade
Closed: wontfix None Opened 6 years ago by mreynolds.

lib389 needs a function to do upgrades/updates: "setup-ds.pl --update"


{{{
# Answer the interactive questions, as "--update" currently does not work with INF files
}}}

You can run upgrade in silent mode with no interaction e.g.
{{{
setup-ds.pl -u -s General.UpdateMode=offline
}}}
Or use "online" if the servers are running

Replying to [comment:2 rmeggins]:

{{{
# Answer the interactive questions, as "--update" currently does not work with INF files
}}}

You can run upgrade in silent mode with no interaction e.g.
{{{
setup-ds.pl -u -s General.UpdateMode=offline
}}}
Or use "online" if the servers are running

For online updates how do you pass in the bind dn and password for multiple instances? When I tried using the INF file, it ignored the slapd->rootdn & slapd->rootpw values, and the same thing seems to happen below using command line args(note that the root dn value is being ignored):

{{{
setup-ds.pl -u -s General.UpdateMode=online -s slapd.rootdn="cn=dm"
Could not open TLS connection to localhost.localdomain:389 - trying regular connection
Could not open a connection to localhost.localdomain:389
Could not open a connection to the server at localhost.localdomain port 389 as 'cn=Directory Manager'.
Please make sure the server is up and running before using online mode,
or use offline mode.

Error: could not update the directory server.
Exiting . . .
Log file is '/tmp/setupD4PNGR.log'
}}}

Yeah, we really need to be able to pass in instance specific parameters. e.g. something like this:
{{{
[slapd-inst1]
RootDN=...
RootDNPwd=...
}}}
and cmd line too
{{{
setup-ds.pl -u slapd-inst1.RootDN ...
}}}
This feature would be very useful for register-ds-admin as well, because there you also need to have the ability to pass in multiple different root dn and pwd.

So, ack.

Replying to [comment:4 rmeggins]:

Yeah, we really need to be able to pass in instance specific parameters. e.g. something like this:
{{{
[slapd-inst1]
RootDN=...
RootDNPwd=...
}}}
and cmd line too
{{{
setup-ds.pl -u slapd-inst1.RootDN ...
}}}
This feature would be very useful for register-ds-admin as well, because there you also need to have the ability to pass in multiple different root dn and pwd.

So, ack.

Okay, I'll open a new ticket for this. Thanks!

To ssh://git.fedorahosted.org/git/389/lib389.git
9577868..ff5bde0 master -> master

commit ff5bde0ad3b05fb4947f7a10345b6816713062cc
Author: Mark Reynolds mreynolds@redhat.com
Date: Mon Jan 19 11:32:31 2015 -0500

Attachment 0001-Ticket-47990-Add-check-for-.removed-instances-when-d.patch​ added

It was one of the easiest reviews! ;)

Thanks Noriko!

To ssh://git.fedorahosted.org/git/389/lib389.git
ff5bde0..0310f78 master -> master

commit 0310f78582114dcc71b43737cc729e0aa60ac2e2
Author: Mark Reynolds mreynolds@redhat.com
Date: Fri Jan 23 15:40:04 2015 -0500

Metadata Update from @rmeggins:
- Issue assigned to mreynolds
- Issue set to the milestone: 1.3.4 backlog

4 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/1321

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)

a year ago

Login to comment on this ticket.

Metadata