← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1655013] [NEW] double assignment of user to group does not give error

 

Public bug reported:

Double group assignment.
[student@ctrl ~(teacher)]$ openstack --os-project-name headoffice group add user newGroup student62
student62 added to group newGroup
[lab3]:teacher@
[student@ctrl ~(teacher)]$ openstack --os-project-name headoffice group add user newGroup student62
student62 added to group newGroup
[lab3]:teacher@

The second line should give an error that the user is already assigned
to a group.

I checked the database keystone.user_group_membership and there is only
assignment there (happy that the problem was not that bad).

[student@ctrl ~(teacher)]$ openstack --version
openstack 2.3.0
[lab3]:teacher@
[student@ctrl ~(teacher)]$ uname -a
Linux ctrl.lab3.stack 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[lab3]:teacher@
[student@ctrl ~(teacher)]$ cat /etc/*-release
CentOS Linux release 7.3.1611 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/";
BUG_REPORT_URL="https://bugs.centos.org/";

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.3.1611 (Core)
CentOS Linux release 7.3.1611 (Core)
[lab3]:teacher@

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1655013

Title:
  double assignment of user to group does not give error

Status in OpenStack Identity (keystone):
  New

Bug description:
  Double group assignment.
  [student@ctrl ~(teacher)]$ openstack --os-project-name headoffice group add user newGroup student62
  student62 added to group newGroup
  [lab3]:teacher@
  [student@ctrl ~(teacher)]$ openstack --os-project-name headoffice group add user newGroup student62
  student62 added to group newGroup
  [lab3]:teacher@

  The second line should give an error that the user is already assigned
  to a group.

  I checked the database keystone.user_group_membership and there is
  only assignment there (happy that the problem was not that bad).

  [student@ctrl ~(teacher)]$ openstack --version
  openstack 2.3.0
  [lab3]:teacher@
  [student@ctrl ~(teacher)]$ uname -a
  Linux ctrl.lab3.stack 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  [lab3]:teacher@
  [student@ctrl ~(teacher)]$ cat /etc/*-release
  CentOS Linux release 7.3.1611 (Core)
  NAME="CentOS Linux"
  VERSION="7 (Core)"
  ID="centos"
  ID_LIKE="rhel fedora"
  VERSION_ID="7"
  PRETTY_NAME="CentOS Linux 7 (Core)"
  ANSI_COLOR="0;31"
  CPE_NAME="cpe:/o:centos:centos:7"
  HOME_URL="https://www.centos.org/";
  BUG_REPORT_URL="https://bugs.centos.org/";

  CENTOS_MANTISBT_PROJECT="CentOS-7"
  CENTOS_MANTISBT_PROJECT_VERSION="7"
  REDHAT_SUPPORT_PRODUCT="centos"
  REDHAT_SUPPORT_PRODUCT_VERSION="7"

  CentOS Linux release 7.3.1611 (Core)
  CentOS Linux release 7.3.1611 (Core)
  [lab3]:teacher@

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1655013/+subscriptions


Follow ups