Enhance Multi-tenant policy in VNF Lifecycle Management¶
This specification discusses the enhancement of multi-tenant policy in the VNF lifecycle management.
Discussion to enable a non-admin role user to instantiate VNF, tenancy isolation between admin and the non-admin role users.
In tacker, a non-admin role user is able to get resource information for VNF, but fails to perform certain VNF LCM operations such as VNF instantiation.
Second, need to implement negative functional test cases for VNF LCM operations and validate notification is received by the tenant specified in the subscription sequence.
1. Allow non admin role user to instantiate VNF¶
In OpenStack Heat Orchestration Template (HOT) enables the creation of most OpenStack resource types, such as instances, floating IP addresses, volumes, security groups and users, collectively known as the stack creation process.
By default admin role user is allowed to create an OpenStack stack.
To allow non-admin role users to create VNFs, the OpenStack resource policies must be changed.
Below mention policies require necessitates change:
As per the investigation, OpenStack allows admin role users to create stack, creation process involves different OpenStack services (such as Heat, Nova, Glance, etc.).
To enable a non-admin role user requires the above mention policy changes as well as code level changes in desired OpenStack services as well.
Adjourning investigation for this cycle, in future we can resume.
2. Design for negative functional test cases¶
The functional test case architecture for a multi-tenant environment, as described in spec , dedicates a subscription notification server for each tenant. Validates that these servers only receive alerts of VNF package or LCM operations conducted by their respective tenants.
To address the design requirement, multiple instances of a fake HTTP server was created, one for each tenant, to function as notification servers. In Zuul, the fake HTTP server class instances run on the same test node (controller-tacker). In single tenancy, the desired HTTP requests and responses are fabricated(mock) in functional test cases. Similarly in a multi-tenant environment, mock HTTP requests and responses for notification servers, with additional validation of tenant details present in notification.
An alternate approach to designing a negative functional test case in Zuul, where two distinct nodes are needed to construct notification servers.
This approach has the following design/implementation challenges:
Adding two new Zuul nodes with a specific port open (opening a port in Zuul may necessitate a special request).
On the new nodes, use ansible-playbook or similar to set up an HTTP server.
A network issue may cause the actual HTTP request to timeout.
Data model impact¶
REST API impact¶
Other end user impact¶
Other deployer impact¶
- Primary assignee:
Manpreet Kaur <firstname.lastname@example.org>
Identify and enable the OpenStack policies that allow non admin role users to create VNF.
Add negative functional test cases for VNF LCM operations and validate notification is received by the tenant specified in the subscription sequence.
Functional tests will be added to cover cases required in the spec.