2024-08-24 01:53:24,278 - INFO - Domain Default found not creating
2024-08-24 01:53:24,438 - INFO - Project ctest-TestBasicPolicy-91620916 not found, creating it
2024-08-24 01:53:24,901 - INFO - Created Project:ctest-TestBasicPolicy-91620916, ID : 863a634c-a6c4-4acc-b095-16b355e50499
2024-08-24 01:53:26,399 - INFO - ================================================================================
2024-08-24 01:53:26,399 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-24 01:53:26,399 - 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-08-24 01:53:26,677 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.20': '0'}} with
2024-08-24 01:53:26,677 - INFO - Initial checks done. Running the testcase now
2024-08-24 01:53:26,678 - INFO -
2024-08-24 01:53:27,252 - DEBUG - Response for create_network : {'network': {'id': 'd97e3e3d-3275-4a3c-aae6-ff433da45767', 'name': 'ctest-vn-88727286', 'tenant_id': '863a634ca6c44accb09516b355e50499', 'project_id': '863a634ca6c44accb09516b355e50499', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91620916', 'ctest-vn-88727286'], 'port_security_enabled': True, 'description': ''}}
2024-08-24 01:53:27,414 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fc2e247-f43a-44e8-a1ef-1f0e223ef081', 'name': '', 'tenant_id': '863a634ca6c44accb09516b355e50499', 'network_id': 'd97e3e3d-3275-4a3c-aae6-ff433da45767', 'ip_version': 4, 'cidr': '3.148.183.0/26', 'allocation_pools': [{'start': '3.148.183.2', 'end': '3.148.183.62'}], 'gateway_ip': '3.148.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.148.183.2', 'tags': [], 'project_id': '863a634ca6c44accb09516b355e50499'}}
2024-08-24 01:53:27,432 - INFO - Created VN ctest-vn-88727286
2024-08-24 01:53:27,486 - DEBUG - VN ctest-vn-88727286 UUID is d97e3e3d-3275-4a3c-aae6-ff433da45767
2024-08-24 01:53:27,761 - DEBUG - Response for create_network : {'network': {'id': 'a8f01eb5-909b-46db-95f9-6f9ea088deef', 'name': 'ctest-vn-67224406', 'tenant_id': '863a634ca6c44accb09516b355e50499', 'project_id': '863a634ca6c44accb09516b355e50499', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91620916', 'ctest-vn-67224406'], 'port_security_enabled': True, 'description': ''}}
2024-08-24 01:53:27,953 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e944ce18-8602-46fa-bfc1-9e9343e0344c', 'name': '', 'tenant_id': '863a634ca6c44accb09516b355e50499', 'network_id': 'a8f01eb5-909b-46db-95f9-6f9ea088deef', 'ip_version': 4, 'cidr': '208.31.191.192/26', 'allocation_pools': [{'start': '208.31.191.194', 'end': '208.31.191.254'}], 'gateway_ip': '208.31.191.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.31.191.194', 'tags': [], 'project_id': '863a634ca6c44accb09516b355e50499'}}
2024-08-24 01:53:27,970 - INFO - Created VN ctest-vn-67224406
2024-08-24 01:53:28,026 - DEBUG - VN ctest-vn-67224406 UUID is a8f01eb5-909b-46db-95f9-6f9ea088deef
2024-08-24 01:53:28,140 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91620916:ctest-vn-88727286, 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-91620916:ctest-vn-67224406, 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-08-24 01:53:28,438 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd97e3e3d-3275-4a3c-aae6-ff433da45767', 'name': 'ctest-vn-88727286', 'tenant_id': '863a634ca6c44accb09516b355e50499', 'project_id': '863a634ca6c44accb09516b355e50499', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fc2e247-f43a-44e8-a1ef-1f0e223ef081'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91620916', 'ctest-vn-88727286'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91620916', 'ctest-policy-allow-all-77670955']], 'subnet_ipam': [{'subnet_cidr': '3.148.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-24 01:53:28,672 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8f01eb5-909b-46db-95f9-6f9ea088deef', 'name': 'ctest-vn-67224406', 'tenant_id': '863a634ca6c44accb09516b355e50499', 'project_id': '863a634ca6c44accb09516b355e50499', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e944ce18-8602-46fa-bfc1-9e9343e0344c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91620916', 'ctest-vn-67224406'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91620916', 'ctest-policy-allow-all-77670955']], 'subnet_ipam': [{'subnet_cidr': '208.31.191.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-24 01:53:28,850 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-08-24 01:53:29,141 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-08-24 01:53:29,170 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d76b7d3c-8829-4817-bf72-ef716405f768
2024-08-24 01:53:29,183 - DEBUG - Requesting: http://10.0.0.41:8082/project/863a634c-a6c4-4acc-b095-16b355e50499
2024-08-24 01:53:29,253 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d97e3e3d-3275-4a3c-aae6-ff433da45767
2024-08-24 01:53:29,262 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d97e3e3d-3275-4a3c-aae6-ff433da45767
2024-08-24 01:53:29,270 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07237273-69be-4263-b761-0ef04591543a
2024-08-24 01:53:29,277 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07237273-69be-4263-b761-0ef04591543a
2024-08-24 01:53:29,284 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/eabc1b93-bda4-4d5a-9701-4f6f8ebc75d8
2024-08-24 01:53:29,290 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-24 01:53:29,290 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d97e3e3d-3275-4a3c-aae6-ff433da45767
2024-08-24 01:53:29,298 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07237273-69be-4263-b761-0ef04591543a
2024-08-24 01:53:29,310 - INFO - Verified VN network id 8 for VN d97e3e3d-3275-4a3c-aae6-ff433da45767
2024-08-24 01:53:29,310 - INFO - Verifications in API Server for VN ctest-vn-88727286 passed
2024-08-24 01:53:29,310 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d97e3e3d-3275-4a3c-aae6-ff433da45767
2024-08-24 01:53:29,318 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07237273-69be-4263-b761-0ef04591543a
2024-08-24 01:53:29,324 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07237273-69be-4263-b761-0ef04591543a
2024-08-24 01:53:29,330 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/eabc1b93-bda4-4d5a-9701-4f6f8ebc75d8
2024-08-24 01:53:29,341 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91620916:ctest-vn-88727286', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91620916', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15672032185856379452', 'uuid-lslong': '12314810895353272167'}, 'enable': 'true', 'created': '2024-08-24T01:53:27', 'last-modified': '2024-08-24T01:53:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927626'}
2024-08-24 01:53:29,347 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-24 01:53:29,347 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88727286 passed
2024-08-24 01:53:29,348 - DEBUG - ====Verifying policy data for ctest-vn-88727286 in API_Server ======
2024-08-24 01:53:29,348 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-08-24 01:53:29,353 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d76b7d3c-8829-4817-bf72-ef716405f768
2024-08-24 01:53:29,364 - DEBUG - Requesting: http://10.0.0.41:8082/project/863a634c-a6c4-4acc-b095-16b355e50499
2024-08-24 01:53:29,434 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d97e3e3d-3275-4a3c-aae6-ff433da45767
2024-08-24 01:53:29,442 - DEBUG - ==>Verifying data for policy with id: c7c92e24-0a27-41ba-b503-e84e53689468, fqn: ['default-domain', 'ctest-TestBasicPolicy-91620916', 'ctest-policy-allow-all-77670955']
2024-08-24 01:53:29,442 - INFO - VN ctest-vn-88727286 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-24 01:53:29,442 - DEBUG - Verifying the vn in opserver
2024-08-24 01:53:29,442 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91620916:ctest-vn-88727286 virtual network link through opserver 10.0.0.41
2024-08-24 01:53:29,442 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-08-24 01:53:29,733 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-08-24 01:53:29,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91620916:ctest-vn-88727286', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91620916:ctest-vn-88727286?flat'}
2024-08-24 01:53:29,788 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91620916:ctest-vn-88727286 is found in opserver
2024-08-24 01:53:29,802 - DEBUG - Do not have enough data to verify VN in agent
2024-08-24 01:53:29,807 - DEBUG - VRF ids for VN ctest-vn-88727286: {}
2024-08-24 01:53:29,807 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-08-24 01:53:29,813 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d76b7d3c-8829-4817-bf72-ef716405f768
2024-08-24 01:53:29,824 - DEBUG - Requesting: http://10.0.0.41:8082/project/863a634c-a6c4-4acc-b095-16b355e50499
2024-08-24 01:53:29,899 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a8f01eb5-909b-46db-95f9-6f9ea088deef
2024-08-24 01:53:29,910 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a8f01eb5-909b-46db-95f9-6f9ea088deef
2024-08-24 01:53:29,918 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5a064191-f905-4f0d-8b19-ed648d03552b
2024-08-24 01:53:29,925 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5a064191-f905-4f0d-8b19-ed648d03552b
2024-08-24 01:53:29,934 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/512ad937-12f6-4db6-bae8-04974ac71b50
2024-08-24 01:53:29,941 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-24 01:53:29,942 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a8f01eb5-909b-46db-95f9-6f9ea088deef
2024-08-24 01:53:29,950 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5a064191-f905-4f0d-8b19-ed648d03552b
2024-08-24 01:53:29,964 - INFO - Verified VN network id 9 for VN a8f01eb5-909b-46db-95f9-6f9ea088deef
2024-08-24 01:53:29,964 - INFO - Verifications in API Server for VN ctest-vn-67224406 passed
2024-08-24 01:53:29,964 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a8f01eb5-909b-46db-95f9-6f9ea088deef
2024-08-24 01:53:29,972 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5a064191-f905-4f0d-8b19-ed648d03552b
2024-08-24 01:53:29,978 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5a064191-f905-4f0d-8b19-ed648d03552b
2024-08-24 01:53:29,984 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/512ad937-12f6-4db6-bae8-04974ac71b50
2024-08-24 01:53:29,996 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91620916:ctest-vn-67224406', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91620916', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12173263557946459867', 'uuid-lslong': '10806791507941056239'}, 'enable': 'true', 'created': '2024-08-24T01:53:27', 'last-modified': '2024-08-24T01:53:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344335'}
2024-08-24 01:53:30,002 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-24 01:53:30,002 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67224406 passed
2024-08-24 01:53:30,002 - DEBUG - ====Verifying policy data for ctest-vn-67224406 in API_Server ======
2024-08-24 01:53:30,002 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-08-24 01:53:30,008 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d76b7d3c-8829-4817-bf72-ef716405f768
2024-08-24 01:53:30,019 - DEBUG - Requesting: http://10.0.0.41:8082/project/863a634c-a6c4-4acc-b095-16b355e50499
2024-08-24 01:53:30,088 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a8f01eb5-909b-46db-95f9-6f9ea088deef
2024-08-24 01:53:30,097 - DEBUG - ==>Verifying data for policy with id: c7c92e24-0a27-41ba-b503-e84e53689468, fqn: ['default-domain', 'ctest-TestBasicPolicy-91620916', 'ctest-policy-allow-all-77670955']
2024-08-24 01:53:30,097 - INFO - VN ctest-vn-67224406 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-24 01:53:30,097 - DEBUG - Verifying the vn in opserver
2024-08-24 01:53:30,097 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91620916:ctest-vn-67224406 virtual network link through opserver 10.0.0.41
2024-08-24 01:53:30,097 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-08-24 01:53:30,109 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91620916:ctest-vn-67224406', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91620916:ctest-vn-67224406?flat'}
2024-08-24 01:53:30,109 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91620916:ctest-vn-67224406 is found in opserver
2024-08-24 01:53:30,119 - DEBUG - Do not have enough data to verify VN in agent
2024-08-24 01:53:30,124 - DEBUG - VRF ids for VN ctest-vn-67224406: {}
2024-08-24 01:53:30,175 - DEBUG - Services list from nova: [