2024-10-24 09:27:42,698 - INFO - Domain Default found not creating
2024-10-24 09:27:42,911 - INFO - Project ctest-TestBasicPolicy-38184171 not found, creating it
2024-10-24 09:27:43,423 - INFO - Created Project:ctest-TestBasicPolicy-38184171, ID : 6f643d82-725d-4d0e-9fce-fd97a51cdd6b
2024-10-24 09:27:45,090 - INFO - ================================================================================
2024-10-24 09:27:45,090 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-24 09:27:45,090 - 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-24 09:27:45,344 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.12': '0'}} with
2024-10-24 09:27:45,344 - INFO - Initial checks done. Running the testcase now
2024-10-24 09:27:45,344 - INFO -
2024-10-24 09:27:46,045 - DEBUG - Response for create_network : {'network': {'id': '81b29519-4090-4c28-9819-49f7e63ac41b', 'name': 'ctest-vn-26397928', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-vn-26397928'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 09:27:46,227 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e8b0d48-edbd-48f2-853d-7243b24e0942', 'name': '', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'network_id': '81b29519-4090-4c28-9819-49f7e63ac41b', 'ip_version': 4, 'cidr': '140.8.29.0/26', 'allocation_pools': [{'start': '140.8.29.2', 'end': '140.8.29.62'}], 'gateway_ip': '140.8.29.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.8.29.2', 'tags': [], 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b'}}
2024-10-24 09:27:46,249 - INFO - Created VN ctest-vn-26397928
2024-10-24 09:27:46,314 - DEBUG - VN ctest-vn-26397928 UUID is 81b29519-4090-4c28-9819-49f7e63ac41b
2024-10-24 09:27:46,648 - DEBUG - Response for create_network : {'network': {'id': '96b9f96c-3801-44dc-8bb4-b5551dc4c044', 'name': 'ctest-vn-32821477', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-vn-32821477'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 09:27:46,911 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db415144-d993-4ca5-981d-942634492393', 'name': '', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'network_id': '96b9f96c-3801-44dc-8bb4-b5551dc4c044', 'ip_version': 4, 'cidr': '16.208.153.0/26', 'allocation_pools': [{'start': '16.208.153.2', 'end': '16.208.153.62'}], 'gateway_ip': '16.208.153.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.208.153.2', 'tags': [], 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b'}}
2024-10-24 09:27:46,933 - INFO - Created VN ctest-vn-32821477
2024-10-24 09:27:46,994 - DEBUG - VN ctest-vn-32821477 UUID is 96b9f96c-3801-44dc-8bb4-b5551dc4c044
2024-10-24 09:27:47,133 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928, 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-38184171:ctest-vn-32821477, 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-24 09:27:47,477 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81b29519-4090-4c28-9819-49f7e63ac41b', 'name': 'ctest-vn-26397928', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e8b0d48-edbd-48f2-853d-7243b24e0942'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-vn-26397928'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-policy-allow-all-88703926']], 'subnet_ipam': [{'subnet_cidr': '140.8.29.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 09:27:47,778 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96b9f96c-3801-44dc-8bb4-b5551dc4c044', 'name': 'ctest-vn-32821477', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db415144-d993-4ca5-981d-942634492393'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-vn-32821477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-policy-allow-all-88703926']], 'subnet_ipam': [{'subnet_cidr': '16.208.153.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 09:27:47,962 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-24 09:27:48,279 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-24 09:27:48,320 - DEBUG - Requesting: http://10.0.0.43:8082/domain/1ca953df-fadf-4f68-8030-feae95965e14
2024-10-24 09:27:48,340 - DEBUG - Requesting: http://10.0.0.43:8082/project/6f643d82-725d-4d0e-9fce-fd97a51cdd6b
2024-10-24 09:27:48,432 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/81b29519-4090-4c28-9819-49f7e63ac41b
2024-10-24 09:27:48,450 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/81b29519-4090-4c28-9819-49f7e63ac41b
2024-10-24 09:27:48,467 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/4337e3ad-9cb0-4970-abc7-7e781acb6843
2024-10-24 09:27:48,478 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/4337e3ad-9cb0-4970-abc7-7e781acb6843
2024-10-24 09:27:48,490 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/4d3ee92c-76db-4704-a2de-faecec322d9e
2024-10-24 09:27:48,500 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 09:27:48,500 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/81b29519-4090-4c28-9819-49f7e63ac41b
2024-10-24 09:27:48,515 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/4337e3ad-9cb0-4970-abc7-7e781acb6843
2024-10-24 09:27:48,540 - INFO - Verified VN network id 9 for VN 81b29519-4090-4c28-9819-49f7e63ac41b
2024-10-24 09:27:48,540 - INFO - Verifications in API Server for VN ctest-vn-26397928 passed
2024-10-24 09:27:48,540 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/81b29519-4090-4c28-9819-49f7e63ac41b
2024-10-24 09:27:48,556 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/4337e3ad-9cb0-4970-abc7-7e781acb6843
2024-10-24 09:27:48,571 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/4337e3ad-9cb0-4970-abc7-7e781acb6843
2024-10-24 09:27:48,586 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/4d3ee92c-76db-4704-a2de-faecec322d9e
2024-10-24 09:27:48,606 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38184171', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9345696112437120040', 'uuid-lslong': '10959872497251173403'}, 'enable': 'true', 'created': '2024-10-24T09:27:46', 'last-modified': '2024-10-24T09:27:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.155003'}
2024-10-24 09:27:48,617 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 09:27:48,617 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26397928 passed
2024-10-24 09:27:48,617 - DEBUG - ====Verifying policy data for ctest-vn-26397928 in API_Server ======
2024-10-24 09:27:48,617 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-24 09:27:48,624 - DEBUG - Requesting: http://10.0.0.43:8082/domain/1ca953df-fadf-4f68-8030-feae95965e14
2024-10-24 09:27:48,642 - DEBUG - Requesting: http://10.0.0.43:8082/project/6f643d82-725d-4d0e-9fce-fd97a51cdd6b
2024-10-24 09:27:48,740 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/81b29519-4090-4c28-9819-49f7e63ac41b
2024-10-24 09:27:48,756 - DEBUG - ==>Verifying data for policy with id: 032ca906-9132-4892-976f-b6e0f1883b76, fqn: ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-policy-allow-all-88703926']
2024-10-24 09:27:48,756 - INFO - VN ctest-vn-26397928 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 09:27:48,756 - DEBUG - Verifying the vn in opserver
2024-10-24 09:27:48,756 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928 virtual network link through opserver 10.0.0.43
2024-10-24 09:27:48,757 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-10-24 09:27:49,062 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-10-24 09:27:49,146 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928?flat'}
2024-10-24 09:27:49,146 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928 is found in opserver
2024-10-24 09:27:49,159 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 09:27:49,168 - DEBUG - VRF ids for VN ctest-vn-26397928: {}
2024-10-24 09:27:49,168 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-24 09:27:49,176 - DEBUG - Requesting: http://10.0.0.43:8082/domain/1ca953df-fadf-4f68-8030-feae95965e14
2024-10-24 09:27:49,191 - DEBUG - Requesting: http://10.0.0.43:8082/project/6f643d82-725d-4d0e-9fce-fd97a51cdd6b
2024-10-24 09:27:49,287 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/96b9f96c-3801-44dc-8bb4-b5551dc4c044
2024-10-24 09:27:49,308 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/96b9f96c-3801-44dc-8bb4-b5551dc4c044
2024-10-24 09:27:49,324 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/0bac9bc0-52e7-4a82-8dda-5f25fae157f0
2024-10-24 09:27:49,334 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/0bac9bc0-52e7-4a82-8dda-5f25fae157f0
2024-10-24 09:27:49,343 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/509491c5-b018-4135-a5b8-870eb93f1140
2024-10-24 09:27:49,353 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 09:27:49,353 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/96b9f96c-3801-44dc-8bb4-b5551dc4c044
2024-10-24 09:27:49,369 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/0bac9bc0-52e7-4a82-8dda-5f25fae157f0
2024-10-24 09:27:49,396 - INFO - Verified VN network id 10 for VN 96b9f96c-3801-44dc-8bb4-b5551dc4c044
2024-10-24 09:27:49,399 - INFO - Verifications in API Server for VN ctest-vn-32821477 passed
2024-10-24 09:27:49,399 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/96b9f96c-3801-44dc-8bb4-b5551dc4c044
2024-10-24 09:27:49,416 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/0bac9bc0-52e7-4a82-8dda-5f25fae157f0
2024-10-24 09:27:49,428 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/0bac9bc0-52e7-4a82-8dda-5f25fae157f0
2024-10-24 09:27:49,437 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/509491c5-b018-4135-a5b8-870eb93f1140
2024-10-24 09:27:49,454 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-32821477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38184171', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10860986219572053212', 'uuid-lslong': '10066870444256182340'}, 'enable': 'true', 'created': '2024-10-24T09:27:46', 'last-modified': '2024-10-24T09:27:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.710374'}
2024-10-24 09:27:49,462 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 09:27:49,462 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32821477 passed
2024-10-24 09:27:49,463 - DEBUG - ====Verifying policy data for ctest-vn-32821477 in API_Server ======
2024-10-24 09:27:49,463 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-24 09:27:49,470 - DEBUG - Requesting: http://10.0.0.43:8082/domain/1ca953df-fadf-4f68-8030-feae95965e14
2024-10-24 09:27:49,486 - DEBUG - Requesting: http://10.0.0.43:8082/project/6f643d82-725d-4d0e-9fce-fd97a51cdd6b
2024-10-24 09:27:49,577 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/96b9f96c-3801-44dc-8bb4-b5551dc4c044
2024-10-24 09:27:49,594 - DEBUG - ==>Verifying data for policy with id: 032ca906-9132-4892-976f-b6e0f1883b76, fqn: ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-policy-allow-all-88703926']
2024-10-24 09:27:49,594 - INFO - VN ctest-vn-32821477 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 09:27:49,594 - DEBUG - Verifying the vn in opserver
2024-10-24 09:27:49,594 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-32821477 virtual network link through opserver 10.0.0.43
2024-10-24 09:27:49,594 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-10-24 09:27:49,611 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-32821477', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-32821477?flat'}
2024-10-24 09:27:49,611 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-32821477 is found in opserver
2024-10-24 09:27:49,623 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 09:27:49,629 - DEBUG - VRF ids for VN ctest-vn-32821477: {}
2024-10-24 09:27:49,694 - DEBUG - Services list from nova: [