Closed the-glu closed 11 years ago
Please see comments of commit 997765014bf4979e175cf33f4e12e77635e96689
What are the options you want in configuration ?
Please provide me with keys and values, for example auth_api_url = "http://big-brother.com/".
PLUGIT_API_URL = 'http://127.0.0.1:5656/plugit/UGvmxwbDkHWnWUstvpwFRjwNTmCVeqjk/3/'
In prod. I will make an SSH tunnel as I use my local machine to work ^^
Can you show me how to get the value and how to change it ? Thanks !
Ok, I will tell you this little story ...
Make charm aware of this option:
charms/oscied-orchestra/config.yaml
. Saying that if it is empty, then orchestra will switch to standalone mode (charms/oscied_lib/OrchestraHooks.py
will screen orchestra.py
instead of server.py
)Charm config-changed hook must save option's value for orchestra daemon:
charms/oscied_lib/OrchestraConfig.py
git add
resulting charms/oscied-orchestra/local_config.pkl
charms/oscied_lib/OrchestraHooks.py
to save _plugit_apiurl into local_configCharm may toggle standalone mode based on value of _plugit_apiurl
Ok, I will do it myself, please be patient.
One question, is it PlugIt API or EBU-io ?
PlugIt API
It is not an easy task to update local_config.pkl of actually running orchestra. I may need to destroy oscied-orchestra service and re-deploy the new charm as I not yet implement upgrade hook !
Do you saved all you modifications into this repository ?
Yes. Don't destroy the instance however ^^ (Or tell me so I can umount my mounts)
Okay, but the loading of the config from local_config.pkl will fail at least if you do not mod it manually to add the good option, good luck !
? If you need to destroy the instance do it, just tell me ^^
The only concern is that : old OrchestraConfig -> local_config.pkl -> new OrchestraConfig = fail
I will download local_config.pkl from the instance and mod it by myself.
Please, stop orchestra screen and let me play with for few minutes.
Of course, send latest version of the code to the unit now.
Ok, I hacked new_local_config.pkl.
You may stop orchestra, switch local_config.pkl <-> new_local_config.pkl, ensure latest version of the code and restart orchestra. Of course, you may need to cheat a little bit by hacking Orchestra config loading to set config.plugit_api_url = 'http://' manually [actions.py main()]
Mokay. I see the new config value, but I didn't understand the rest, I let you add it correctly and will use config.plugit_api_url to dev :)
Please read actions.py -> main() to check the hack.
Should be ok now. I don't know why you pass the users to tasks, especialy if it's only to test if the user is valid.. I removed tests, in git and on publisher and transcoder server.
Hello, that looks fine.
Actuellement, je fait un faux user. Il me faudrait une option de configuration avec une URL, histoire de pouvoir utiliser l'API plugit pour récupérer un user.
=> David: Tu peux me rajouter la dite option dans ton système de configuration ? Merci :)