Add key management for repos in Fuel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Confirmed
|
Medium
|
Fuel Sustaining |
Bug Description
Since there is no way to manage keys for repositories in fuel(or am I missing it?) I have to specify [trusted=yes] for my repository.
But fuel doesn't allow to do that, complaining about bad format(see attach).
I was able to manually change it in database though.
[root@fuel1 ~]# dockerctl shell postgres
[root@fuel1 /]# su - postgres
-bash-4.1$ pg_dump --column-inserts --data-only -t attributes nailgun > attributes_old.sql
-bash-4.1$ cp attributes_old.sql attributes_new.sql
-bash-4.1$ vim attributes_new.sql and
1) delete attributes record that you do not want to change
2) Change
INSERT INTO attributes (id, cluster_id, editable, generated) VALUES (...);
to
UPDATE attributes (id, cluster_id, editable, generated) = (...) WHERE id = 'ID_THAT_YOU_NEED';
And change uri in 'editable' column by adding [trusted=yes] before actual url . So in my case:
{"name": "fixedkernel", "section": "main", "uri": "[trusted=yes] http://
{"name": "fixedkernel", "section": "main", "uri": "http://
Then execute the script:
-bash-4.1$ psql nailgun -f attributes_new.sql
After that
fuel node --node-id 1 --task upload_core_repos
worked, and I was able to install the packages from new repo.
Changed in fuel: | |
milestone: | none → 9.0 |
assignee: | nobody → Fuel Python Team (fuel-python) |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: area-python module-nailgun team-bugfix |
summary: |
- Fuel doesn't allow to specify [trusted=yes] for repos + Add key management for repos in Fuel |
tags: | added: feature |
Changed in fuel: | |
milestone: | 9.0 → 10.0 |
Changed in fuel: | |
assignee: | Fuel Python (Deprecated) (fuel-python) → Fuel Sustaining (fuel-sustaining-team) |
And just for information how to add key: ubuntu. com --recv-keys REPLACE_ WITH_KEY_ YOU_NEED
sudo apt-key adv --keyserver keyserver.
or manually add if you do not have internet on the node. opensourceforge eks.blogspot. in/2013/ 04/w-gpg- error-httpppala unchpadnet- precise. html
http://