Comment 32 for bug 1961088

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

@zhengrui

> i am sorry to ask some stupid questiones, what is config-changed ? and how to run it? i have a same question with octavia, but i can not find out what is config-changed?

Generally, this is a support "hack", but it goes something like this:

Juju 2.x:

juju run -m <model> -u <app>/<unit-id> -- hooks/config-changed

Juju 3.x:

juju exec -m <model> -u <app>/<unit-id> -- hooks/config-changed

Essentially, this simulates a config-changed hook running, when the operator runs something like:

juju config -m <model> <app> <some-config-item>=<some value>

Hope that helps.