Difference between revisions of "stoney cloud: OpenLDAP directory data organisation"

From stoney cloud
Jump to: navigation, search
[checked revision][checked revision]
(Data Organisation)
(IaaS (Infrastructure as a Service))
Line 18: Line 18:
  
 
=== Domains (resellers) ===
 
=== Domains (resellers) ===
 
+
<source lang="ldif">
dn: ou=domains,ou=iaas,ou=services,dc=stoney-cloud,dc=org  
+
dn: ou=domains,ou=iaas,ou=services,dc=stoney-cloud,dc=org  
objectclass: top
+
objectclass: top
objectclass: organizationalUnit
+
objectclass: organizationalUnit
ou: domains
+
ou: domains
description: The sub tree for the domains (resellers) of the OpenStack based stoney cloud service.
+
description: The sub tree for the domains (resellers) of the OpenStack based stoney cloud service.
 +
</source>
  
 
==== Domain (reseller) example ====
 
==== Domain (reseller) example ====
 
+
<source lang="ldif">
dn: uid=4000000,ou=domains,ou=iaas,ou=services,dc=stoney-cloud,dc=org
+
dn: uid=4000000,ou=domains,ou=iaas,ou=services,dc=stoney-cloud,dc=org
objectclass: top
+
objectclass: top
objectclass: sstIaaSDomains (or just sstIaaS?)
+
objectclass: sstIaaSDomains (or just sstIaaS?)
objectclass: sstProvisioning
+
objectclass: sstProvisioning
objectclass: sstRelationship
+
objectclass: sstRelationship
uid: 5000000
+
uid: 5000000
sstDomainID: b01822477be64c09950022486300c59c
+
sstDomainID: b01822477be64c09950022486300c59c
sstDomainName: Reseller Ltd.
+
sstDomainName: Reseller Ltd.
sstDomainDescription: 4000000 - Reseller Ltd.
+
sstDomainDescription: 4000000 - Reseller Ltd.
sstIsActive: TRUE
+
sstIsActive: TRUE
sstProvisioningMode: add
+
sstProvisioningMode: add
sstProvisioningExecutionDate: 0
+
sstProvisioningExecutionDate: 0
sstProvisioningState: 0
+
sstProvisioningState: 0
sstBelongsToResellerUID: 4000000
+
sstBelongsToResellerUID: 4000000
sstBelongsToCustomerUID: 4000001
+
sstBelongsToCustomerUID: 4000001
sstBelongsToPersonUID: 4000002
+
sstBelongsToPersonUID: 4000002
 +
</source>
  
 
=== Projects (tenants) ===
 
=== Projects (tenants) ===
 
+
<source lang="ldif">
dn: ou=projects,ou=iaas,ou=services,dc=stoney-cloud,dc=org  
+
dn: ou=projects,ou=iaas,ou=services,dc=stoney-cloud,dc=org  
objectclass: top
+
objectclass: top
objectclass: organizationalUnit
+
objectclass: organizationalUnit
ou: projects
+
ou: projects
description: The sub tree for the projects (tenants) of the OpenStack based stoney cloud service.
+
description: The sub tree for the projects (tenants) of the OpenStack based stoney cloud service.
 +
</source>
  
 
==== Project (tenant) examples ====
 
==== Project (tenant) examples ====
 
Due to the OpenStack project (tenant) organisation, we can have multiple tenants per domain (reseller) and customers. The following LDIF example show the first project of the customer Customer Ltd. with the <code>sstBelongsToCustomerUID: 4000001</code> belonging to the reseller Reseller Ltd. with the <code>sstBelongsToResellerUID: 4000000</code>:
 
Due to the OpenStack project (tenant) organisation, we can have multiple tenants per domain (reseller) and customers. The following LDIF example show the first project of the customer Customer Ltd. with the <code>sstBelongsToCustomerUID: 4000001</code> belonging to the reseller Reseller Ltd. with the <code>sstBelongsToResellerUID: 4000000</code>:
dn: uid=5000001,ou=projects,ou=iaas,ou=services,dc=stoney-cloud,dc=org
+
<source lang="ldif">
objectclass: top
+
dn: uid=5000001,ou=projects,ou=iaas,ou=services,dc=stoney-cloud,dc=org
objectclass: sstIaaSProjects (or just sstIaaS?)
+
objectclass: top
objectclass: sstProvisioning
+
objectclass: sstIaaSProjects (or just sstIaaS?)
objectclass: sstRelationship
+
objectclass: sstProvisioning
uid: 5000001
+
objectclass: sstRelationship
sstProjectID: 5a3a4fd5d6e94a87815131be42d8e6d9
+
uid: 5000001
sstProjectName: Customer Ltd. - Base Project
+
sstProjectID: 5a3a4fd5d6e94a87815131be42d8e6d9
sstProjectDescription: 4000000/4000001 - Customer Ltd.
+
sstProjectName: Customer Ltd. - Base Project
sstIsActive: TRUE
+
sstProjectDescription: 4000000/4000001 - Customer Ltd.
sstProvisioningMode: add
+
sstIsActive: TRUE
sstProvisioningExecutionDate: 0
+
sstProvisioningMode: add
sstProvisioningState: 0
+
sstProvisioningExecutionDate: 0
sstBelongsToDomainID: b01822477be64c09950022486300c59c
+
sstProvisioningState: 0
sstBelongsToResellerUID: 4000000
+
sstBelongsToDomainID: b01822477be64c09950022486300c59c
sstBelongsToCustomerUID: 4000001
+
sstBelongsToResellerUID: 4000000
sstBelongsToPersonUID: 4000002
+
sstBelongsToCustomerUID: 4000001
 +
sstBelongsToPersonUID: 4000002
 +
</source>
  
 
The following LDIF example show the second project of the customer Customer Ltd. with the <code>sstBelongsToCustomerUID: 4000001</code> belonging to the reseller Reseller Ltd. with the <code>sstBelongsToResellerUID: 4000000</code>:
 
The following LDIF example show the second project of the customer Customer Ltd. with the <code>sstBelongsToCustomerUID: 4000001</code> belonging to the reseller Reseller Ltd. with the <code>sstBelongsToResellerUID: 4000000</code>:
dn: uid=5000002,ou=projects,ou=iaas,ou=services,dc=stoney-cloud,dc=org
+
<source lang="ldif">
objectclass: top
+
dn: uid=5000002,ou=projects,ou=iaas,ou=services,dc=stoney-cloud,dc=org
objectclass: sstIaaSProjects (or just sstIaaS?)
+
objectclass: top
objectclass: sstProvisioning
+
objectclass: sstIaaSProjects (or just sstIaaS?)
objectclass: sstRelationship
+
objectclass: sstProvisioning
uid: 5000002
+
objectclass: sstRelationship
sstProjectID: 9ecb5bfdd4564f6ca52bba1e869eeea4
+
uid: 5000002
sstProjectName: Customer Ltd. - Second Project
+
sstProjectID: 9ecb5bfdd4564f6ca52bba1e869eeea4
sstProjectDescription: Customer Ltd. - Second Project
+
sstProjectName: Customer Ltd. - Second Project
sstIsActive: TRUE
+
sstProjectDescription: Customer Ltd. - Second Project
sstProvisioningMode: add
+
sstIsActive: TRUE
sstProvisioningExecutionDate: 0
+
sstProvisioningMode: add
sstProvisioningState: 0
+
sstProvisioningExecutionDate: 0
sstBelongsToDomainID: b01822477be64c09950022486300c59c
+
sstProvisioningState: 0
sstBelongsToResellerUID: 4000000
+
sstBelongsToDomainID: b01822477be64c09950022486300c59c
sstBelongsToCustomerUID: 4000001
+
sstBelongsToResellerUID: 4000000
sstBelongsToPersonUID: 4000002
+
sstBelongsToCustomerUID: 4000001
 
+
sstBelongsToPersonUID: 4000002
 +
</source>
  
 
Per Domain:
 
Per Domain:

Revision as of 11:59, 18 August 2018

Abstract

This document describes the stoney cloud (OpenStack) relevant OpenLDAP directory data organisation.

Introduction

This document describes the OpenLDAP directory data organisation for the stoney cloud service.

Data Organisation

The following chapters explain the data organisation of the stoney cloud OpenLDAP directory, in this case we looking at the stoney cloud service.

IaaS (Infrastructure as a Service)

The subtree ou=iaas,ou=service,dc=stoney-cloud,dc=org contains all the OpenStack based stoney cloud service data. The following LDIF shows the iaas entry for the stoney cloud service:

dn: ou=iaas,ou=services,dc=stoney-cloud,dc=org
objectclass: top
objectclass: organizationalUnit
ou: iaas

Domains (resellers)

dn: ou=domains,ou=iaas,ou=services,dc=stoney-cloud,dc=org 
objectclass: top
objectclass: organizationalUnit
ou: domains
description: The sub tree for the domains (resellers) of the OpenStack based stoney cloud service.

Domain (reseller) example

dn: uid=4000000,ou=domains,ou=iaas,ou=services,dc=stoney-cloud,dc=org
objectclass: top
objectclass: sstIaaSDomains (or just sstIaaS?)
objectclass: sstProvisioning
objectclass: sstRelationship
uid: 5000000
sstDomainID: b01822477be64c09950022486300c59c
sstDomainName: Reseller Ltd.
sstDomainDescription: 4000000 - Reseller Ltd.
sstIsActive: TRUE
sstProvisioningMode: add
sstProvisioningExecutionDate: 0
sstProvisioningState: 0
sstBelongsToResellerUID: 4000000
sstBelongsToCustomerUID: 4000001
sstBelongsToPersonUID: 4000002

Projects (tenants)

dn: ou=projects,ou=iaas,ou=services,dc=stoney-cloud,dc=org 
objectclass: top
objectclass: organizationalUnit
ou: projects
description: The sub tree for the projects (tenants) of the OpenStack based stoney cloud service.

Project (tenant) examples

Due to the OpenStack project (tenant) organisation, we can have multiple tenants per domain (reseller) and customers. The following LDIF example show the first project of the customer Customer Ltd. with the sstBelongsToCustomerUID: 4000001 belonging to the reseller Reseller Ltd. with the sstBelongsToResellerUID: 4000000:

dn: uid=5000001,ou=projects,ou=iaas,ou=services,dc=stoney-cloud,dc=org
objectclass: top
objectclass: sstIaaSProjects (or just sstIaaS?)
objectclass: sstProvisioning
objectclass: sstRelationship
uid: 5000001
sstProjectID: 5a3a4fd5d6e94a87815131be42d8e6d9
sstProjectName: Customer Ltd. - Base Project
sstProjectDescription: 4000000/4000001 - Customer Ltd.
sstIsActive: TRUE
sstProvisioningMode: add
sstProvisioningExecutionDate: 0
sstProvisioningState: 0
sstBelongsToDomainID: b01822477be64c09950022486300c59c
sstBelongsToResellerUID: 4000000
sstBelongsToCustomerUID: 4000001
sstBelongsToPersonUID: 4000002

The following LDIF example show the second project of the customer Customer Ltd. with the sstBelongsToCustomerUID: 4000001 belonging to the reseller Reseller Ltd. with the sstBelongsToResellerUID: 4000000:

dn: uid=5000002,ou=projects,ou=iaas,ou=services,dc=stoney-cloud,dc=org
objectclass: top
objectclass: sstIaaSProjects (or just sstIaaS?)
objectclass: sstProvisioning
objectclass: sstRelationship
uid: 5000002
sstProjectID: 9ecb5bfdd4564f6ca52bba1e869eeea4
sstProjectName: Customer Ltd. - Second Project
sstProjectDescription: Customer Ltd. - Second Project
sstIsActive: TRUE
sstProvisioningMode: add
sstProvisioningExecutionDate: 0
sstProvisioningState: 0
sstBelongsToDomainID: b01822477be64c09950022486300c59c
sstBelongsToResellerUID: 4000000
sstBelongsToCustomerUID: 4000001
sstBelongsToPersonUID: 4000002

Per Domain:

sstBillable: TRUE

Per Project:

sstBillable: TRUE
sstNetworkHostnameFormat: sst-internal-%03d (string)
sstNetworkHostnameNextFreeNumber: 1 (int)
objectclass: sstHostnameDefinitionObjectClass
objectclass: sstOpenStackProject
objectclass: sstOpenStackDomain


To set the attribute sstNetworkHostnameFormat correctly, please read the Customer VM Naming Convention page first!

Questions

  • Should we have a configuraton sub tree with sane default values?
  • Should we store the current values in the LDAP (CPU, RAM, ...)?
  • Will we store the network configuraton in the LDAP?
    • If yes, how will we store the additional networks in the LDAP (shared network)?
  • How will we make sure, not to bill the IPv4 netwoks, belonging to a reseller and/or customer?
    • For example Fence IT AG?
  • Will we have both sstBelongsToDomainID and sstBelongsToDomainUID or just one or the other?