491 Commits

Author SHA1 Message Date
Zuul
1a0191d8f0 Merge "Add missing [oslo_reports] options" 2021-09-08 20:39:04 +00:00
Zuul
2984188eee Merge "Add missing parameters for the healthcheck middleware" 2021-09-08 20:38:59 +00:00
Abhishek Kekane
0bd3791e15 Refresh Glance example configs for Xena milestone 3
Change-Id: Ib0d69c875ed6291b0ab2b82e737d201f7041bbc8
2021-09-03 13:38:41 +00:00
Takashi Kajinami
d155c37693 Add missing [oslo_reports] options
The oslo.reports library provides some options under the [oslo_reports]
section. This change ensures these parameters are rendered by
the oslo-config-generator command.

Closes-Bug: #1940733
Change-Id: Icdfa374640e8962198790c30f4d0e0ec03b2f2cd
2021-08-21 17:22:51 +09:00
Takashi Kajinami
33f2875ce0 Load options from the castellan library
Currently Glance relies on the castellan library for encryption, but
the option for the library have been missing from glance-api.conf .
This change ensures options from the castellan library are rendered
into glance-api.conf by the oslo-config-generator command.

Closes-Bug: #1940090
Change-Id: I5b9459dfc3060ea40272d13f21ae87ff4ade64c5
2021-08-16 22:55:38 +09:00
Takashi Kajinami
2c2a1317af Add missing parameters for the healthcheck middleware
The healthcheck middleware was added to the api pipelines a long ago[1]
but parameters of the middleware are missing from the example
glance-api.conf file.
This change adds the oslo.config.opts endpoint so that the parameters
of the middleware are rendered by the oslo-config-generator command.

[1] 562cb0429f9e2657dbcf108c534ef6c4779eb177

Closes-Bug: #1939944
Change-Id: Ibf6839b3cf202b2a1b253c4687d08f072349513e
2021-08-14 22:15:20 +09:00
Erno Kuvaja
04541ae72b Clean out deprecations from paste.ini
The etc/glance-api-paste.ini had still couple of pipelines left
behind from registry and osprofile options deprecated in 2015.

This change clears those and removes the reference note from
configuring doc.

Change-Id: Idb78cd2935a9ea5a1b1bc3ee6153311190422ca5
2021-07-29 12:50:36 +01:00
Abhishek Kekane
1d8117b093 Refresh Glance example configs for Xena milestone 2
Change-Id: I034497da6cd977ad6d025bf183f51c3ff1d3df40
2021-07-09 05:06:40 +00:00
Abhishek Kekane
dbab664039 Refresh Glance example configs for Wallaby milestone 3
Change-Id: Ifc957de2bcf4d22c1b7cba31ce2b467df9d5aa85
2021-03-08 08:59:50 +00:00
Cyril Roelandt
7839ab0925 Remove unused option "owner_is_tenant"
This option has been deprecated since Rocky.

Change-Id: I8edc957ad50ec28d80a06e76912f4226cea53562
2021-02-11 16:17:10 +01:00
Stephen Finucane
e1fe3024bb docs: Remove references to XenAPI driver
The XenAPI driver is dead. Let's hold the tissues and clear out
references from the documentation instead.

Change-Id: I6ec331cf7d2d1ded924893f707ed963027939754
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-09-17 17:09:17 +01:00
Abhishek Kekane
19229d7990 Refresh Glance example configs for Victoria milestone 3
Change-Id: Ibd02882c1e42de3db7f78b50dd974b99b0d9ded1
2020-09-03 05:53:06 +00:00
Zuul
c1cf511a7c Merge "Fix metadefs for compute-watchdog" 2020-08-29 03:02:57 +00:00
Abhishek Kekane
5071a60c97 Refresh Glance example configs for Victoria milestone 2
Change-Id: Ie8b8e8557098e756399b106bafc03bbcb39c29b0
2020-07-28 16:07:08 +00:00
Erno Kuvaja
96507d3eaf Update sample configs post deprecation removals
Change-Id: Ib3deb9361887caeea606db4955cd9d35d263de0a
2020-07-14 10:45:56 +00:00
Erno Kuvaja
3068096199 Cleanup remove api v1 and registry code
Change-Id: I86a3cbf4374bc2b083ccd86f75b88490b305eaab
2020-07-14 10:38:19 +00:00
Cyril Roelandt
24c281230e Fix metadefs for compute-watchdog
Change-Id: Idf9be5afea5d034b9679ad451306a8f2d365aa51
Closes-Bug: #1887099
2020-07-10 02:55:11 +02:00
Erno Kuvaja
673666cbf4 Deprecation cleanout Registry and related
This patch removes majority of the registry and it's related
endpoints and config options that has been deprecated for
removal in various releases.

Change-Id: I75014bd50bf382efebe56bd89c20ffefbdde25f5
2020-06-30 20:41:30 +01:00
Erno Kuvaja
781da9354f Remove configs and entries for deprecated registry
Including removal of the example conf in docs.
Including glance-registry command entrypoint to eventlet.
Including rpc_controller from wsgi, changed to reject.
Not including the files devstack is depending on.

This change means that glance-registry starts and announces
that it has been removed.
This change means that when ran as wsgi app, all calls to
/rpc endpoint will be rejected.

This will allow devstack to make a graceful transition to
life without the glance registry, which was deprecated in
Newton release.

Change-Id: I7bf3284cba4c38605fb50b3c458e53f896f34086
2020-06-08 21:11:45 +01:00
Takashi Natsume
ed3bb4e1fb Fix a failure to parse json file
Change-Id: I53454c05710ebc45381315a20e10e627cbb65650
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Closes-Bug: #1876419
2020-05-02 14:36:42 +09:00
Zuul
16520ed240 Merge "Update OS::Glance::CommonImageProperties in metadefs" 2020-04-21 08:39:36 +00:00
Zuul
f6a1b797da Merge "Add missing Image property hw_vif_multiqueue_enabled to metadefs" 2020-04-21 06:53:34 +00:00
Abhishek Kekane
68e5fa35cb Refresh Glance example configs for Ussuri milestone 3
Change-Id: I1c2c14c3e1997b1adbc28022ea03fd541554bdb6
2020-04-10 14:15:57 +00:00
khashf
b6d6144632 Add missing Image property hw_vif_multiqueue_enabled to metadefs
Add the missing hw_vif_multiqueue_enabled property and its descriptions
in doc/source/admin/useful-image-properties.rst to:
- etc/metadefs/compute-libvirt-image.json
- etc/metadefs/compute-vmware.json

Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Change-Id: I3b5ffc25a8d3fb5d55aa1ef93b20c5f8aefe93e8
Closes-bug: #1843576
2020-04-07 21:59:02 -07:00
khashf
7c4eda8f62 Update OS::Glance::CommonImageProperties in metadefs
Add missing properties, as of Train, defined in etc/schema-image.json
for OS::Glance::CommonImageProperties defined in
etc/metadefs/glance-common-image-props.json

Change-Id: I3e6d2ab88cca41bbf66dbced8b576637f13b9f57
Closes-bug: #1856581
2020-04-07 18:12:40 -07:00
Cyril Roelandt
772bae36ea Remove all references to sheepdog
The sheepdog driver has recently been removed from glance_store.

Change-Id: I58f0d20cadfae7a7df8b5dce6d8d4c66eaa2a148
2020-04-02 15:39:57 -05:00
Zuul
dd1975bd3e Merge "Remove empty policy.json" 2020-03-05 17:40:36 +00:00
Ian Wienand
0035ab2538 Revert "Remove all example configs for deprecated registry"
This reverts commit 2a28696de9e18a3866631507739944ceb3460872.

Devstack still references a number of these files; revert until
devstack incorporates removal.

Change-Id: I1e90ceee1f87291668e447f180f37bb809763836
2020-02-14 14:30:44 +11:00
Erno Kuvaja
2a28696de9 Remove all example configs for deprecated registry
Including removal if the example conf in docs.

Change-Id: I00c77b8f7001d8fa0fde4083c2ee88c370c14a09
2020-02-13 15:33:50 +00:00
Abhishek Kekane
1ec86b668c Refresh Glance example configs for Ussuri milestone 2
Change-Id: Iac910e2c0a745d53464712b8714191c4275857c2
2020-02-12 06:10:07 +00:00
Zuul
26c5c8dff6 Merge "Remove OS::Compute::Trust metadef" 2020-01-28 05:42:34 +00:00
Zuul
903e85fdd3 Merge "fix properties' missing underline for VirtCPUTopology" 2020-01-28 05:31:28 +00:00
Zane Bitter
5bffac0186 Remove empty policy.json
Supplying a policy.json file is no longer necessary.

Change-Id: I33b84c4d68e8077271447bcbdea4b7052eb01204
Depends-On: https://review.opendev.org/694386
2020-01-16 17:15:36 -05:00
Zuul
c632586ef3 Merge "Move policy defaults into code" 2020-01-09 14:00:55 +00:00
Zane Bitter
5c17e4c7ef Move policy defaults into code
Instead of a default policy.json file, policy defaults are now defined
in code. An operator need not supply policy.json data except to the
extent they want to override the defaults. Currently an empty
policy.json is still shipped because it is expected by devstack, but
this can be removed later. A sample policy.yaml file can be generated
using the genpolicy tox environment.

This partly fulfils the requirements of the policy in code goal[1].
However, because policies don't map 1:1 with APIs, it will not be
possible to fully document the policies until changes are made in how
policies are applied as proposed in https://review.opendev.org/528021

Due to the fact that existing policy files may rely on a rule named
"default" to specifiy policies not explicitly listed in the policy.json
file, all policies that are not admin-only by default now default to
"rule:default", so that the "default" rule will continue to apply to
those policies that are not listed in policy.json.

To ensure that this yields the expected policy in a standard
policy-in-code config file, the default value of the "default" rule is
now the empty string "". This is a change; between the Queens release
and now the default was set to "role:admin" to match the value specified
in the default policy.json file. An installation relying on both the
"default" rule for some policies and the default value of the default
rule may end up with a more permissive policy after upgrading. It's
likely that no such policies exist in the wild, because prior to the
Queens release the default value for the "default" rule was "@" (allow
all requests), so anybody relying on this rule will surely have
specified it explicitly in their policy.json.

Policies whose default is "role:admin" no longer use the "default" rule.
Therefore existing policy.json files that rely on the "default" rule for
those policies, and who have specified a value for the "default" rule
that is more permissive, will result in a more restrictive policy after
upgrading. It is unlikely that any of these policies exist in the wild
either.

[1] https://governance.openstack.org/tc/goals/selected/queens/policy-in-code.html

Change-Id: I8d1ccf5844078cc0b1652fb1130794daf07cedbc
2020-01-06 12:56:30 -05:00
Abhishek Kekane
0eacf2da18 Refresh Glance example configs for Ussuri milestone 1
Change-Id: Iaac5c65f10f39027dd191b2397d8e5141bc9e12d
2019-12-19 16:30:17 +00:00
Zuul
edb86eda48 Merge "Fix unit of hw_rng:rate_period" 2019-12-13 22:21:25 +00:00
Erno Kuvaja
0cefe020df Refresh Glance example configs for Train
Change-Id: I9930dc0fa1c7da883ecb1b77a52a492e2d3e7baa
2019-10-01 10:38:44 +01:00
Zuul
854e425fec Merge "Add SEV-related extra spec and image properties" 2019-09-25 14:22:31 +00:00
zengjia
c11ebf46e7 Fix unit of hw_rng:rate_period
Replace seconds with milliseconds
in the description of hw_rng:rate_period[1].

[1]https://libvirt.org/formatdomain.html#elementsRng

Change-Id: I53848359704d68dd84c5be8106f4e259937b8092
Related-Bug:#1843542
2019-09-20 02:35:56 +00:00
Erno Kuvaja
da29e129fa Revert "Add reserved stores to the sample config file"
This patch introduced double registering of the same
config option groups which fails glance-api start
if reserved stores are actually defined.

The code utilizing these config options has not been
merged which prevented testing to catch this.

Closes-Bug: #1844108

This reverts commit 4265e61bc84ce9bd085a95d8734647f4875af740.

Change-Id: Iaf338d29673e68a15d37fdda81add552e4175634
2019-09-19 12:40:34 +01:00
Matt Riedemann
b78abdfa0e Remove OS::Compute::Trust metadef
The nova TrustedFilter scheduler filter was removed in the Queens
release [1] so the compute trust metadef is now just noise so we
should remove it.

[1] https://review.opendev.org/506864/

Change-Id: I71825cd5317d458fa30287b78cd1030cbc457dbd
2019-09-17 09:45:52 -04:00
Erno Kuvaja
d9546dce75 Images API version bump and config sync
This change contains minor version bump to Images API to
indicate latest changes to the API.

Also has config file sync for for M3 release.

These two are combined for saving some gating time due to
busy infra at Train milestone 3 deadline.

Change-Id: I13133c32734751d43cc3afed9b68d015cebd5b6b
2019-09-16 13:25:45 +01:00
Adam Spiers
3a281b9bc6 Add SEV-related extra spec and image properties
The AMD SEV support recently introduced to nova[0] depends on certain
metadata properties for flavors and images which were either missing
or only partially covered by existing glance metadata, so fill the
missing gaps:

- Add the hw:mem_encryption flavor extra spec and corresponding
  hw_mem_encryption image property.

- hw_firmware_type has been supported by nova for quite a while,
  so register it as an official metadata property.

- Add hw_cdrom_bus which was missing as per
  https://bugs.launchpad.net/glance/+bug/1808868.  This shares
  values with hw_disk_bus, so document that too.

[0] https://docs.openstack.org/nova/latest/admin/configuration/hypervisor-kvm.html#amd-sev-secure-encrypted-virtualization

Closes-Bug: 1808868
Change-Id: I8116565ad0326d0125b320d840d787edcb086aa9
2019-09-12 19:58:27 +01:00
Zuul
ff7d940b21 Merge "Add reserved stores to the sample config file" 2019-09-12 18:55:16 +00:00
Zuul
e475581c72 Merge "Delete secret key on image deletion" 2019-09-06 13:49:25 +00:00
Zuul
ca00b48e59 Merge "add metadef vlaues for new video models" 2019-09-06 12:03:03 +00:00
Cyril Roelandt
b190a39a28 Delete secret key on image deletion
We add two extra properties for images:
- cinder_encryption_key_id, which stores the encryption key id;
- cinder_encryption_key_deletion_policy, which states whether the secret
  key should be deleted on image deletion.

This feature uses the Castellan key manager, and will therefore work
with all its supported backends.

Implements: blueprint barbican-secret-deletion-support
DocImpact

Change-Id: Iacd0b3785ad4cdd06961e6d11967775806e009ff
2019-09-05 03:16:39 +02:00
Ning Yao
da277c583a fix properties' missing underline for VirtCPUTopology
According to the docs:
https://opendev.org/openstack/nova-specs/src/branch/master/specs/juno/implemented/virt-driver-vcpu-topology.rst,
cpu_maxsockets, cpu_maxcores, cpu_maxthreads should be cpu_max_sockets, cpu_max_cores, cpu_max_threads.

Change-Id: Ieecfb11928f74a504b35172a2c96d3a8cba057c0
Signed-off-by: Ning Yao <yaoning@unitedstack.com>
2019-09-04 12:03:52 +08:00
Sean Mooney
5bdefff5cd add metadef vlaues for new video models
- This change adds the newly supported libvirt
  video models, virtio, gop and none.
- This change updates the train metadefs changes
  release note.

Change-Id: I440a038b53825b5f92fc977566edcf3cabfba673
2019-08-21 01:18:07 +01:00