2024-10-28 14:46:57,205 - INFO - Domain Default found not creating
2024-10-28 14:46:57,409 - INFO - Project ctest-TestBasicPolicy-06658238 not found, creating it
2024-10-28 14:46:57,915 - INFO - Created Project:ctest-TestBasicPolicy-06658238, ID : 5ae09dd7-24f3-46a8-9006-a14512b27b6a
2024-10-28 14:46:59,509 - INFO - ================================================================================
2024-10-28 14:46:59,509 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-28 14:46:59,509 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-10-28 14:46:59,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.28': '0'}} with
2024-10-28 14:46:59,767 - INFO - Initial checks done. Running the testcase now
2024-10-28 14:46:59,767 - INFO -
2024-10-28 14:47:00,376 - DEBUG - Response for create_network : {'network': {'id': '5e77f536-9432-402f-9c97-eb8e1e751f60', 'name': 'ctest-vn-94495562', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'project_id': '5ae09dd724f346a89006a14512b27b6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-vn-94495562'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 14:47:00,549 - DEBUG - Response for create_subnet : {'subnet': {'id': '09116c8e-87c2-4574-8eac-009148ab1ec5', 'name': '', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'network_id': '5e77f536-9432-402f-9c97-eb8e1e751f60', 'ip_version': 4, 'cidr': '131.168.181.0/26', 'allocation_pools': [{'start': '131.168.181.2', 'end': '131.168.181.62'}], 'gateway_ip': '131.168.181.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.168.181.2', 'tags': [], 'project_id': '5ae09dd724f346a89006a14512b27b6a'}}
2024-10-28 14:47:00,576 - INFO - Created VN ctest-vn-94495562
2024-10-28 14:47:00,634 - DEBUG - VN ctest-vn-94495562 UUID is 5e77f536-9432-402f-9c97-eb8e1e751f60
2024-10-28 14:47:00,971 - DEBUG - Response for create_network : {'network': {'id': 'aa092ade-34ef-4c6f-909c-92df50fee87c', 'name': 'ctest-vn-69657565', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'project_id': '5ae09dd724f346a89006a14512b27b6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-vn-69657565'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 14:47:01,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e88832e-28ae-40a2-9b24-622b3d49d54a', 'name': '', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'network_id': 'aa092ade-34ef-4c6f-909c-92df50fee87c', 'ip_version': 4, 'cidr': '20.108.186.0/26', 'allocation_pools': [{'start': '20.108.186.2', 'end': '20.108.186.62'}], 'gateway_ip': '20.108.186.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.108.186.2', 'tags': [], 'project_id': '5ae09dd724f346a89006a14512b27b6a'}}
2024-10-28 14:47:01,232 - INFO - Created VN ctest-vn-69657565
2024-10-28 14:47:01,290 - DEBUG - VN ctest-vn-69657565 UUID is aa092ade-34ef-4c6f-909c-92df50fee87c
2024-10-28 14:47:01,421 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-69657565, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-10-28 14:47:01,765 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e77f536-9432-402f-9c97-eb8e1e751f60', 'name': 'ctest-vn-94495562', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'project_id': '5ae09dd724f346a89006a14512b27b6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09116c8e-87c2-4574-8eac-009148ab1ec5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-vn-94495562'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-policy-allow-all-20989501']], 'subnet_ipam': [{'subnet_cidr': '131.168.181.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 14:47:02,023 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa092ade-34ef-4c6f-909c-92df50fee87c', 'name': 'ctest-vn-69657565', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'project_id': '5ae09dd724f346a89006a14512b27b6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e88832e-28ae-40a2-9b24-622b3d49d54a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-vn-69657565'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-policy-allow-all-20989501']], 'subnet_ipam': [{'subnet_cidr': '20.108.186.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 14:47:02,202 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2024-10-28 14:47:02,512 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2024-10-28 14:47:02,831 - DEBUG - Requesting: http://10.0.0.61:8082/domain/820f944f-8084-4d8a-9bb5-a2482dcb30b2
2024-10-28 14:47:02,857 - DEBUG - Requesting: http://10.0.0.61:8082/project/5ae09dd7-24f3-46a8-9006-a14512b27b6a
2024-10-28 14:47:02,949 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/5e77f536-9432-402f-9c97-eb8e1e751f60
2024-10-28 14:47:02,966 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/5e77f536-9432-402f-9c97-eb8e1e751f60
2024-10-28 14:47:02,982 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/a02a3f6a-d5cc-469d-b525-4e076e76e958
2024-10-28 14:47:02,993 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/a02a3f6a-d5cc-469d-b525-4e076e76e958
2024-10-28 14:47:03,006 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/b35fa277-e2c9-4452-a854-54cb38dcc316
2024-10-28 14:47:03,017 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 14:47:03,017 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/5e77f536-9432-402f-9c97-eb8e1e751f60
2024-10-28 14:47:03,032 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/a02a3f6a-d5cc-469d-b525-4e076e76e958
2024-10-28 14:47:03,056 - INFO - Verified VN network id 8 for VN 5e77f536-9432-402f-9c97-eb8e1e751f60
2024-10-28 14:47:03,057 - INFO - Verifications in API Server for VN ctest-vn-94495562 passed
2024-10-28 14:47:03,057 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/5e77f536-9432-402f-9c97-eb8e1e751f60
2024-10-28 14:47:03,075 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/a02a3f6a-d5cc-469d-b525-4e076e76e958
2024-10-28 14:47:03,085 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/a02a3f6a-d5cc-469d-b525-4e076e76e958
2024-10-28 14:47:03,097 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/b35fa277-e2c9-4452-a854-54cb38dcc316
2024-10-28 14:47:03,116 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06658238', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6807178976557154351', 'uuid-lslong': '11283746387028942688'}, 'enable': 'true', 'created': '2024-10-28T14:47:00', 'last-modified': '2024-10-28T14:47:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.380634'}
2024-10-28 14:47:03,124 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 14:47:03,125 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94495562 passed
2024-10-28 14:47:03,125 - DEBUG - ====Verifying policy data for ctest-vn-94495562 in API_Server ======
2024-10-28 14:47:03,125 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2024-10-28 14:47:03,135 - DEBUG - Requesting: http://10.0.0.61:8082/domain/820f944f-8084-4d8a-9bb5-a2482dcb30b2
2024-10-28 14:47:03,153 - DEBUG - Requesting: http://10.0.0.61:8082/project/5ae09dd7-24f3-46a8-9006-a14512b27b6a
2024-10-28 14:47:03,243 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/5e77f536-9432-402f-9c97-eb8e1e751f60
2024-10-28 14:47:03,260 - DEBUG - ==>Verifying data for policy with id: 0b929c77-0ba9-45b9-a912-f2a06e55c22d, fqn: ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-policy-allow-all-20989501']
2024-10-28 14:47:03,260 - INFO - VN ctest-vn-94495562 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 14:47:03,260 - DEBUG - Verifying the vn in opserver
2024-10-28 14:47:03,260 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562 virtual network link through opserver 10.0.0.61
2024-10-28 14:47:03,260 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks
2024-10-28 14:47:03,573 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks
2024-10-28 14:47:03,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562?flat'}
2024-10-28 14:47:03,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562 is found in opserver
2024-10-28 14:47:03,657 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 14:47:03,663 - DEBUG - VRF ids for VN ctest-vn-94495562: {}
2024-10-28 14:47:03,664 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2024-10-28 14:47:03,670 - DEBUG - Requesting: http://10.0.0.61:8082/domain/820f944f-8084-4d8a-9bb5-a2482dcb30b2
2024-10-28 14:47:03,684 - DEBUG - Requesting: http://10.0.0.61:8082/project/5ae09dd7-24f3-46a8-9006-a14512b27b6a
2024-10-28 14:47:03,774 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/aa092ade-34ef-4c6f-909c-92df50fee87c
2024-10-28 14:47:03,792 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/aa092ade-34ef-4c6f-909c-92df50fee87c
2024-10-28 14:47:03,810 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d26613ab-d9a1-498e-be07-1718a4239ade
2024-10-28 14:47:03,820 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d26613ab-d9a1-498e-be07-1718a4239ade
2024-10-28 14:47:03,830 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/636e3b01-978e-49b5-9380-c6372c99d23f
2024-10-28 14:47:03,839 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 14:47:03,839 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/aa092ade-34ef-4c6f-909c-92df50fee87c
2024-10-28 14:47:03,855 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d26613ab-d9a1-498e-be07-1718a4239ade
2024-10-28 14:47:03,878 - INFO - Verified VN network id 9 for VN aa092ade-34ef-4c6f-909c-92df50fee87c
2024-10-28 14:47:03,878 - INFO - Verifications in API Server for VN ctest-vn-69657565 passed
2024-10-28 14:47:03,878 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/aa092ade-34ef-4c6f-909c-92df50fee87c
2024-10-28 14:47:03,896 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d26613ab-d9a1-498e-be07-1718a4239ade
2024-10-28 14:47:03,906 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d26613ab-d9a1-498e-be07-1718a4239ade
2024-10-28 14:47:03,917 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/636e3b01-978e-49b5-9380-c6372c99d23f
2024-10-28 14:47:03,932 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-69657565', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06658238', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12252371395097349231', 'uuid-lslong': '10420365125662730364'}, 'enable': 'true', 'created': '2024-10-28T14:47:00', 'last-modified': '2024-10-28T14:47:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.947450'}
2024-10-28 14:47:03,939 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 14:47:03,939 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69657565 passed
2024-10-28 14:47:03,939 - DEBUG - ====Verifying policy data for ctest-vn-69657565 in API_Server ======
2024-10-28 14:47:03,939 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2024-10-28 14:47:03,946 - DEBUG - Requesting: http://10.0.0.61:8082/domain/820f944f-8084-4d8a-9bb5-a2482dcb30b2
2024-10-28 14:47:03,960 - DEBUG - Requesting: http://10.0.0.61:8082/project/5ae09dd7-24f3-46a8-9006-a14512b27b6a
2024-10-28 14:47:04,042 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/aa092ade-34ef-4c6f-909c-92df50fee87c
2024-10-28 14:47:04,056 - DEBUG - ==>Verifying data for policy with id: 0b929c77-0ba9-45b9-a912-f2a06e55c22d, fqn: ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-policy-allow-all-20989501']
2024-10-28 14:47:04,057 - INFO - VN ctest-vn-69657565 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 14:47:04,057 - DEBUG - Verifying the vn in opserver
2024-10-28 14:47:04,057 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-69657565 virtual network link through opserver 10.0.0.61
2024-10-28 14:47:04,057 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks
2024-10-28 14:47:04,070 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-69657565', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-69657565?flat'}
2024-10-28 14:47:04,070 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-69657565 is found in opserver
2024-10-28 14:47:04,082 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 14:47:04,088 - DEBUG - VRF ids for VN ctest-vn-69657565: {}
2024-10-28 14:47:04,153 - DEBUG - Services list from nova: [