Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Add Host parameters with @ symbol in image or add coverage #394

Open
ntkathole opened this issue Nov 20, 2019 · 3 comments
Open

Add Host parameters with @ symbol in image or add coverage #394

ntkathole opened this issue Nov 20, 2019 · 3 comments

Comments

@ntkathole
Copy link
Contributor

Coverage for https://bugzilla.redhat.com/show_bug.cgi?id=1774167

  1. specify a host parameter with the @ symbol, eg, a package-set, as found in the database:
> echo "select id, name, value, type from parameters" | sudo -u postgres psql -d foreman
could not change directory to "/root"
 id |        name        |        value         |      type      
----+--------------------+----------------------+-----------------
  1 | enable-epel        | false                | CommonParameter
  2 | enable-puppet5     | true                 | CommonParameter
  3 | kt_activation_keys | DEV-RHEL7-INFRA-VIRT | GroupParameter
  4 | kt_activation_keys | DEV-RHEL8-INFRA-VIRT | GroupParameter
  5 | package-set        | @Core                | GroupParameter
  7 | package-set        | @Base                | HostParameter
  8 | package-set        | @Base                | HostParameter
(7 rows)

  1. Attempt to upgrade from 6.5 to 6.6
@ntkathole
Copy link
Contributor Author

@devendra104 when you will up the image of 6.5/6.6, please add host parameters as above.

@ntkathole
Copy link
Contributor Author

6.6 Images updated

# echo "select id, name, value, type from parameters" | sudo -u postgres psql -d foreman
could not change directory to "/root"
 id |              name              |                                                          value                                                          |         type          
----+--------------------------------+-------------------------------------------------------------------------------------------------------------------------+-----------------------
  1 | kt_activation_keys             | --- clientak_rhel7                                                                                                     +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
 23 | remote_execution_connect_by_ip | --- true                                                                                                               +| OrganizationParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
 24 | parameterwith@                 | --- "@Base"                                                                                                            +| CommonParameter
    |                                |                                                                                                                         | 
 25 | param@                         | --- "@Base"                                                                                                            +| GroupParameter
    |                                |                                                                                                                         | 
 26 | package-set                    | --- "@Base"                                                                                                            +| GroupParameter
    |                                |                                                                                                                         | 
 27 | param-@                        | --- "@Base"                                                                                                            +| HostParameter
    |                                |                                                                                                                         | 
 28 | package-set                    | --- "@Core"                                                                                                            +| HostParameter
    |                                |                                                                                                                         | 
 29 | package-set                    | --- "@Base"                                                                                                            +| HostParameter
    |                                |                                                                                                                         | 
  2 | kt_org                         | --- Default_Organization                                                                                               +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
  3 | kt_env                         | --- QA                                                                                                                 +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
  4 | kt_cv                          | --- rhel7_cv                                                                                                           +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
  5 | kt_activation_keys             | --- clientak_rhel6                                                                                                     +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
  6 | kt_org                         | --- Default_Organization                                                                                               +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
  7 | kt_env                         | --- Dev                                                                                                                +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
  8 | kt_cv                          | --- rhel6_cv                                                                                                           +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
  9 | kt_activation_keys             | --- clientak_rhel6                                                                                                     +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
 12 | kt_activation_keys             | --- clientak_rhel7                                                                                                     +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
 13 | enable-epel                    | --- false                                                                                                              +| CommonParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
 14 | enable-puppet5                 | --- true                                                                                                               +| CommonParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
 15 | freeipa_server_invalid         | --- example.com                                                                                                        +| CommonParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
 16 | idm_server_invalid             | --- example.com                                                                                                        +| CommonParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
 17 | kt_activation_keys             | --- clientak_rhel8                                                                                                     +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
 20 | kt_activation_keys             | --- clientak_rhel8                                                                                                     +| GroupParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
 21 | remote_execution_connect_by_ip | --- true                                                                                                               +| OrganizationParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
 22 | kepowjhuiy                     | --- auth                          include              password-auth account     include                  password-auth+| HostParameter
    |                                | ...                                                                                                                    +| 
    |                                |                                                                                                                         | 
(25 rows)

@ntkathole
Copy link
Contributor Author

Need to add again 1 parameter as per https://bugzilla.redhat.com/show_bug.cgi?id=1764625 as above issue is closed as dupe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant