Bug 1805840 - OSP13z10: Method Not Allowed (HTTP 405) when using 'openstack object store account' on RGW
Summary: OSP13z10: Method Not Allowed (HTTP 405) when using 'openstack object store ac...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z12
: 13.0 (Queens)
Assignee: Giulio Fidente
QA Contact: Yogev Rabl
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-21 16:04 UTC by Vincent S. Cojot
Modified: 2024-01-06 04:28 UTC (History)
9 users (show)

Fixed In Version: openstack-tripleo-heat-templates-8.4.1-58.el7ost
Doc Type: Bug Fix
Doc Text:
Before this update, deploying Ceph RadosGW did not create the `swiftoperator` role, and users with the `swiftoperator` role were not granted administration permissions for RadosGW Swift endpoints. With this update, deploying Swift or Ceph RadosGW creates the `swiftoperator` role automatically, and users with the `swiftoperator` role can now administer RadosGW objects as well as Swift objects.
Clone Of:
Environment:
Last Closed: 2020-06-24 11:33:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 712910 0 None MERGED Add swiftoperator role on ceph-rgw template 2021-02-03 22:27:11 UTC
Red Hat Product Errata RHBA-2020:2718 0 None None None 2020-06-24 11:33:56 UTC

Description Vincent S. Cojot 2020-02-21 16:04:53 UTC
Description of problem:

OSP13z10 OSP deployed with Ceph and Ceph-RGW. On that overcloud, here's what I get:

(overcloud) [stack@osp13p ocp]$ openstack object store account set --property Temp-URL-Key=superkey
Method Not Allowed (HTTP 405) (Request-ID: tx000000000000000002255-005e4de155-1044-default)

On an overcloud with a real swift store, I don't get an error:

(overcloud) [stack@qasite1-director ~]$ openstack object store account set --property Temp-URL-Key=superkey

(overcloud) [stack@qasite1-director ~]$

Comment 1 Vincent S. Cojot 2020-02-21 16:06:01 UTC
I'm using the following ceph config in my Director-based deployment:

parameter_defaults:
  CephAnsibleExtraConfig:
    ceph_osd_docker_memory_limit: 5g
    ceph_osd_docker_cpu_limit: 1
    ceph_mds_docker_memory_limit: 4g
    ceph_mds_docker_cpu_limit: 1
  CephAnsibleEnvironmentVariables:
    ANSIBLE_SSH_RETRIES: '6'
    DEFAULT_FORKS: '25'
  ceph_mgr_modules: [status dashboard]
  CephAnsiblePlaybookVerbosity: 1
  CephConfigOverrides:
    journal_size: 5120
    osd_pool_default_size: 1
    osd_pool_default_min_size: 1
    osd_pool_default_pg_num: 128
    osd_pool_default_pgp_num: 128
    mon_max_pg_per_osd: 2048
    rgw_swift_account_in_url: true
  CephAnsibleDisksConfig:
    osd_scenario: collocated
    osd_objectstore: filestore
    #osd_scenario: lvm
    #osd_objectstore: bluestore
    dmcrypt: False
    devices:
      - /dev/sdb
      - /dev/sdc
      - /dev/sdd
      - /dev/sde
      - /dev/sdf
      - /dev/sdg
      - /dev/sdh
  CephPoolDefaultPgNum: 128
  CephPools:
    - name: volumes
      pg_num: 64
    - name: vms
      pg_num: 64
    - name: images
      pg_num: 64

Comment 2 Vincent S. Cojot 2020-02-21 16:39:39 UTC
I was attempting to follow the steps listed here:

https://developers.redhat.com/blog/2020/02/06/red-hat-openshift-4-2-ipi-on-openstack-13-all-in-one-setup

Comment 3 Vincent S. Cojot 2020-02-21 20:19:41 UTC
Ok, some more information:
1) Need the swiftoperator role on OSP13.
2) the endpoints for swift need to be manually modified on OSP13 so that they reference %(project_id)s

Steps are described here:
https://kdjlab.com/openshift-4-2-on-red-hat-openstack-platform-13/

Comment 4 Giulio Fidente 2020-02-24 14:16:01 UTC
> 2) the endpoints for swift need to be manually modified on OSP13 so that
> they reference %(project_id)s

this will be resolved in 13z11, tracked by https://bugzilla.redhat.com/show_bug.cgi?id=1709968

Comment 5 Giulio Fidente 2020-02-24 14:17:11 UTC
we can use this bug to track backport of https://bugzilla.redhat.com/show_bug.cgi?id=1789178 in 13

Comment 18 Yogev Rabl 2020-06-11 18:19:09 UTC
Verified on openstack-tripleo-heat-templates-8.4.1-58.el7ost.noarch

Comment 20 errata-xmlrpc 2020-06-24 11:33:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2718

Comment 21 Red Hat Bugzilla 2024-01-06 04:28:10 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.