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

lib389 - add function to do upgrade #1321

Closed
389-ds-bot opened this issue Sep 12, 2020 · 10 comments
Closed

lib389 - add function to do upgrade #1321

389-ds-bot opened this issue Sep 12, 2020 · 10 comments
Labels
closed: fixed Migration flag - Issue
Milestone

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/47990


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

@389-ds-bot 389-ds-bot added the closed: fixed Migration flag - Issue label Sep 12, 2020
@389-ds-bot 389-ds-bot added this to the 1.3.4 backlog milestone Sep 12, 2020
@389-ds-bot
Copy link
Author

@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2015-01-20 21:43:56

            # 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

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2015-01-20 21:57:12

Replying to [comment:2 richm]:

            # 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'

@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2015-01-20 22:13:17

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.

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2015-01-20 22:16:39

Replying to [comment:4 richm]:

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!

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2015-01-20 22:18:39

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

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

@389-ds-bot
Copy link
Author

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2015-01-24 03:06:04

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

It was one of the easiest reviews! ;)

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2015-01-24 03:09:47

Thanks Noriko!

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

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

@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2017-02-11 23:00:50

Metadata Update from @richm:

  • Issue assigned to mreynolds389
  • Issue set to the milestone: 1.3.4 backlog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: fixed Migration flag - Issue
Projects
None yet
Development

No branches or pull requests

1 participant