2024-09-13 14:03:23,922 - INFO - Domain Default found not creating
2024-09-13 14:03:24,096 - INFO - Project ctest-TestBasicPolicy-78032801 not found, creating it
2024-09-13 14:03:24,565 - INFO - Created Project:ctest-TestBasicPolicy-78032801, ID : 5f2ed4c5-19a5-47a1-8b1c-2c555e136b56
2024-09-13 14:03:26,094 - INFO - ================================================================================
2024-09-13 14:03:26,094 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-13 14:03:26,094 - 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-09-13 14:03:26,353 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.29': '0'}} with
2024-09-13 14:03:26,353 - INFO - Initial checks done. Running the testcase now
2024-09-13 14:03:26,353 - INFO -
2024-09-13 14:03:26,952 - DEBUG - Response for create_network : {'network': {'id': 'bff82eeb-413b-4ba1-a0cf-fe4335862933', 'name': 'ctest-vn-32335797', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'project_id': '5f2ed4c519a547a18b1c2c555e136b56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-vn-32335797'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 14:03:27,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e9f757e-430f-45a7-8dd0-80fcdd3222ff', 'name': '', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'network_id': 'bff82eeb-413b-4ba1-a0cf-fe4335862933', 'ip_version': 4, 'cidr': '106.13.229.64/26', 'allocation_pools': [{'start': '106.13.229.66', 'end': '106.13.229.126'}], 'gateway_ip': '106.13.229.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.13.229.66', 'tags': [], 'project_id': '5f2ed4c519a547a18b1c2c555e136b56'}}
2024-09-13 14:03:27,197 - INFO - Created VN ctest-vn-32335797
2024-09-13 14:03:27,255 - DEBUG - VN ctest-vn-32335797 UUID is bff82eeb-413b-4ba1-a0cf-fe4335862933
2024-09-13 14:03:27,625 - DEBUG - Response for create_network : {'network': {'id': 'e83885d3-e8d2-45c4-95ec-9540853efbc5', 'name': 'ctest-vn-51316814', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'project_id': '5f2ed4c519a547a18b1c2c555e136b56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-vn-51316814'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 14:03:27,831 - DEBUG - Response for create_subnet : {'subnet': {'id': '3835c6b9-6545-401b-979e-6f5d65c7f8f3', 'name': '', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'network_id': 'e83885d3-e8d2-45c4-95ec-9540853efbc5', 'ip_version': 4, 'cidr': '48.190.67.64/26', 'allocation_pools': [{'start': '48.190.67.66', 'end': '48.190.67.126'}], 'gateway_ip': '48.190.67.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.190.67.66', 'tags': [], 'project_id': '5f2ed4c519a547a18b1c2c555e136b56'}}
2024-09-13 14:03:27,857 - INFO - Created VN ctest-vn-51316814
2024-09-13 14:03:27,923 - DEBUG - VN ctest-vn-51316814 UUID is e83885d3-e8d2-45c4-95ec-9540853efbc5
2024-09-13 14:03:28,060 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797, 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-78032801:ctest-vn-51316814, 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-09-13 14:03:28,402 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bff82eeb-413b-4ba1-a0cf-fe4335862933', 'name': 'ctest-vn-32335797', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'project_id': '5f2ed4c519a547a18b1c2c555e136b56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e9f757e-430f-45a7-8dd0-80fcdd3222ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-vn-32335797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-policy-allow-all-61801722']], 'subnet_ipam': [{'subnet_cidr': '106.13.229.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 14:03:28,664 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e83885d3-e8d2-45c4-95ec-9540853efbc5', 'name': 'ctest-vn-51316814', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'project_id': '5f2ed4c519a547a18b1c2c555e136b56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3835c6b9-6545-401b-979e-6f5d65c7f8f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-vn-51316814'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-policy-allow-all-61801722']], 'subnet_ipam': [{'subnet_cidr': '48.190.67.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 14:03:28,843 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-13 14:03:29,150 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-13 14:03:29,182 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5a2ac64b-d0a2-487e-928e-e9257a6b6896
2024-09-13 14:03:29,198 - DEBUG - Requesting: http://10.0.0.30:8082/project/5f2ed4c5-19a5-47a1-8b1c-2c555e136b56
2024-09-13 14:03:29,287 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/bff82eeb-413b-4ba1-a0cf-fe4335862933
2024-09-13 14:03:29,303 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/bff82eeb-413b-4ba1-a0cf-fe4335862933
2024-09-13 14:03:29,316 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/41fb110a-050e-40e3-8b65-c8f08637e911
2024-09-13 14:03:29,326 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/41fb110a-050e-40e3-8b65-c8f08637e911
2024-09-13 14:03:29,335 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e5d50c4f-1726-4a96-ac30-d6af1a0c822d
2024-09-13 14:03:29,342 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 14:03:29,342 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/bff82eeb-413b-4ba1-a0cf-fe4335862933
2024-09-13 14:03:29,358 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/41fb110a-050e-40e3-8b65-c8f08637e911
2024-09-13 14:03:29,381 - INFO - Verified VN network id 8 for VN bff82eeb-413b-4ba1-a0cf-fe4335862933
2024-09-13 14:03:29,381 - INFO - Verifications in API Server for VN ctest-vn-32335797 passed
2024-09-13 14:03:29,382 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/bff82eeb-413b-4ba1-a0cf-fe4335862933
2024-09-13 14:03:29,397 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/41fb110a-050e-40e3-8b65-c8f08637e911
2024-09-13 14:03:29,406 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/41fb110a-050e-40e3-8b65-c8f08637e911
2024-09-13 14:03:29,416 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e5d50c4f-1726-4a96-ac30-d6af1a0c822d
2024-09-13 14:03:29,431 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78032801', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13832857843415075745', 'uuid-lslong': '11587759930861824307'}, 'enable': 'true', 'created': '2024-09-13T14:03:26', 'last-modified': '2024-09-13T14:03:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.058975'}
2024-09-13 14:03:29,438 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 14:03:29,438 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32335797 passed
2024-09-13 14:03:29,438 - DEBUG - ====Verifying policy data for ctest-vn-32335797 in API_Server ======
2024-09-13 14:03:29,438 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-13 14:03:29,444 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5a2ac64b-d0a2-487e-928e-e9257a6b6896
2024-09-13 14:03:29,458 - DEBUG - Requesting: http://10.0.0.30:8082/project/5f2ed4c5-19a5-47a1-8b1c-2c555e136b56
2024-09-13 14:03:29,541 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/bff82eeb-413b-4ba1-a0cf-fe4335862933
2024-09-13 14:03:29,556 - DEBUG - ==>Verifying data for policy with id: 8e04d845-ddb5-4976-97bd-4b504d1c75b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-policy-allow-all-61801722']
2024-09-13 14:03:29,557 - INFO - VN ctest-vn-32335797 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 14:03:29,557 - DEBUG - Verifying the vn in opserver
2024-09-13 14:03:29,557 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797 virtual network link through opserver 10.0.0.30
2024-09-13 14:03:29,557 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-09-13 14:03:29,855 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-09-13 14:03:29,917 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797?flat'}
2024-09-13 14:03:29,917 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797 is found in opserver
2024-09-13 14:03:29,930 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 14:03:29,935 - DEBUG - VRF ids for VN ctest-vn-32335797: {}
2024-09-13 14:03:29,935 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-13 14:03:29,942 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5a2ac64b-d0a2-487e-928e-e9257a6b6896
2024-09-13 14:03:29,959 - DEBUG - Requesting: http://10.0.0.30:8082/project/5f2ed4c5-19a5-47a1-8b1c-2c555e136b56
2024-09-13 14:03:30,048 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e83885d3-e8d2-45c4-95ec-9540853efbc5
2024-09-13 14:03:30,067 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e83885d3-e8d2-45c4-95ec-9540853efbc5
2024-09-13 14:03:30,081 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1e42aefe-7687-49ae-afed-08586ec32006
2024-09-13 14:03:30,090 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1e42aefe-7687-49ae-afed-08586ec32006
2024-09-13 14:03:30,098 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/97c5401b-5e6d-4312-ab24-df8505ad7e2b
2024-09-13 14:03:30,106 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 14:03:30,106 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e83885d3-e8d2-45c4-95ec-9540853efbc5
2024-09-13 14:03:30,122 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1e42aefe-7687-49ae-afed-08586ec32006
2024-09-13 14:03:30,142 - INFO - Verified VN network id 9 for VN e83885d3-e8d2-45c4-95ec-9540853efbc5
2024-09-13 14:03:30,142 - INFO - Verifications in API Server for VN ctest-vn-51316814 passed
2024-09-13 14:03:30,142 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e83885d3-e8d2-45c4-95ec-9540853efbc5
2024-09-13 14:03:30,157 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1e42aefe-7687-49ae-afed-08586ec32006
2024-09-13 14:03:30,168 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1e42aefe-7687-49ae-afed-08586ec32006
2024-09-13 14:03:30,177 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/97c5401b-5e6d-4312-ab24-df8505ad7e2b
2024-09-13 14:03:30,191 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-51316814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78032801', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16733271560685766084', 'uuid-lslong': '10803173710500920261'}, 'enable': 'true', 'created': '2024-09-13T14:03:27', 'last-modified': '2024-09-13T14:03:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.553011'}
2024-09-13 14:03:30,199 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 14:03:30,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51316814 passed
2024-09-13 14:03:30,199 - DEBUG - ====Verifying policy data for ctest-vn-51316814 in API_Server ======
2024-09-13 14:03:30,199 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-13 14:03:30,205 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5a2ac64b-d0a2-487e-928e-e9257a6b6896
2024-09-13 14:03:30,220 - DEBUG - Requesting: http://10.0.0.30:8082/project/5f2ed4c5-19a5-47a1-8b1c-2c555e136b56
2024-09-13 14:03:30,306 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e83885d3-e8d2-45c4-95ec-9540853efbc5
2024-09-13 14:03:30,321 - DEBUG - ==>Verifying data for policy with id: 8e04d845-ddb5-4976-97bd-4b504d1c75b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-policy-allow-all-61801722']
2024-09-13 14:03:30,321 - INFO - VN ctest-vn-51316814 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 14:03:30,321 - DEBUG - Verifying the vn in opserver
2024-09-13 14:03:30,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-51316814 virtual network link through opserver 10.0.0.30
2024-09-13 14:03:30,321 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-09-13 14:03:30,333 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-51316814', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-51316814?flat'}
2024-09-13 14:03:30,333 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-51316814 is found in opserver
2024-09-13 14:03:30,344 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 14:03:30,349 - DEBUG - VRF ids for VN ctest-vn-51316814: {}
2024-09-13 14:03:30,407 - DEBUG - Services list from nova: [