2025-04-26 13:19:57,171 - INFO - Domain Default found not creating
2025-04-26 13:19:57,292 - INFO - Project ctest-TestBasicPolicy-54134965 not found, creating it
2025-04-26 13:19:57,844 - INFO - Created Project:ctest-TestBasicPolicy-54134965, ID : b5048c02-1d5b-4d31-b50d-2a376f4f4d68
2025-04-26 13:19:59,323 - INFO - ================================================================================
2025-04-26 13:19:59,323 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-26 13:19:59,323 - 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
2025-04-26 13:19:59,582 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-04-26 13:19:59,582 - INFO - Initial checks done. Running the testcase now
2025-04-26 13:19:59,582 - INFO -
2025-04-26 13:20:00,108 - DEBUG - Response for create_network : {'network': {'id': '0293832b-f640-4719-a949-d8af1d70ec12', 'name': 'ctest-vn-15900711', 'tenant_id': 'b5048c021d5b4d31b50d2a376f4f4d68', 'project_id': 'b5048c021d5b4d31b50d2a376f4f4d68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54134965', 'ctest-vn-15900711'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 13:20:00,285 - DEBUG - Response for create_subnet : {'subnet': {'id': '6aef2d04-4936-47c1-8efa-922a6cf4f91b', 'name': '', 'tenant_id': 'b5048c021d5b4d31b50d2a376f4f4d68', 'network_id': '0293832b-f640-4719-a949-d8af1d70ec12', 'ip_version': 4, 'cidr': '114.246.150.64/26', 'allocation_pools': [{'start': '114.246.150.66', 'end': '114.246.150.126'}], 'gateway_ip': '114.246.150.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.246.150.66', 'tags': [], 'project_id': 'b5048c021d5b4d31b50d2a376f4f4d68'}}
2025-04-26 13:20:00,302 - INFO - Created VN ctest-vn-15900711
2025-04-26 13:20:00,353 - DEBUG - VN ctest-vn-15900711 UUID is 0293832b-f640-4719-a949-d8af1d70ec12
2025-04-26 13:20:00,652 - DEBUG - Response for create_network : {'network': {'id': '52d931a6-3e53-4dd7-835f-2abd1f426600', 'name': 'ctest-vn-40766517', 'tenant_id': 'b5048c021d5b4d31b50d2a376f4f4d68', 'project_id': 'b5048c021d5b4d31b50d2a376f4f4d68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54134965', 'ctest-vn-40766517'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 13:20:00,823 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1f4666a-71f2-4a1a-bc23-6f0d7c1411c5', 'name': '', 'tenant_id': 'b5048c021d5b4d31b50d2a376f4f4d68', 'network_id': '52d931a6-3e53-4dd7-835f-2abd1f426600', 'ip_version': 4, 'cidr': '74.148.191.192/26', 'allocation_pools': [{'start': '74.148.191.194', 'end': '74.148.191.254'}], 'gateway_ip': '74.148.191.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.148.191.194', 'tags': [], 'project_id': 'b5048c021d5b4d31b50d2a376f4f4d68'}}
2025-04-26 13:20:00,967 - INFO - Created VN ctest-vn-40766517
2025-04-26 13:20:01,021 - DEBUG - VN ctest-vn-40766517 UUID is 52d931a6-3e53-4dd7-835f-2abd1f426600
2025-04-26 13:20:01,169 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54134965:ctest-vn-15900711, 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-54134965:ctest-vn-40766517, 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]
2025-04-26 13:20:01,470 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0293832b-f640-4719-a949-d8af1d70ec12', 'name': 'ctest-vn-15900711', 'tenant_id': 'b5048c021d5b4d31b50d2a376f4f4d68', 'project_id': 'b5048c021d5b4d31b50d2a376f4f4d68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6aef2d04-4936-47c1-8efa-922a6cf4f91b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54134965', 'ctest-vn-15900711'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54134965', 'ctest-policy-allow-all-46938307']], 'subnet_ipam': [{'subnet_cidr': '114.246.150.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 13:20:01,719 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '52d931a6-3e53-4dd7-835f-2abd1f426600', 'name': 'ctest-vn-40766517', 'tenant_id': 'b5048c021d5b4d31b50d2a376f4f4d68', 'project_id': 'b5048c021d5b4d31b50d2a376f4f4d68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1f4666a-71f2-4a1a-bc23-6f0d7c1411c5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54134965', 'ctest-vn-40766517'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54134965', 'ctest-policy-allow-all-46938307']], 'subnet_ipam': [{'subnet_cidr': '74.148.191.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 13:20:01,889 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-26 13:20:02,279 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-26 13:20:02,313 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e4fa536-d014-4d76-ba05-ec200c6ca779
2025-04-26 13:20:02,324 - DEBUG - Requesting: http://10.0.0.50:8082/project/b5048c02-1d5b-4d31-b50d-2a376f4f4d68
2025-04-26 13:20:02,396 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0293832b-f640-4719-a949-d8af1d70ec12
2025-04-26 13:20:02,407 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0293832b-f640-4719-a949-d8af1d70ec12
2025-04-26 13:20:02,415 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d6229734-e8ec-4482-a6c7-b4470755aa1d
2025-04-26 13:20:02,422 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d6229734-e8ec-4482-a6c7-b4470755aa1d
2025-04-26 13:20:02,427 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3a854409-f180-492b-aaa8-58b416f2eb4d
2025-04-26 13:20:02,433 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 13:20:02,433 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0293832b-f640-4719-a949-d8af1d70ec12
2025-04-26 13:20:02,441 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d6229734-e8ec-4482-a6c7-b4470755aa1d
2025-04-26 13:20:02,453 - INFO - Verified VN network id 9 for VN 0293832b-f640-4719-a949-d8af1d70ec12
2025-04-26 13:20:02,454 - INFO - Verifications in API Server for VN ctest-vn-15900711 passed
2025-04-26 13:20:02,454 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0293832b-f640-4719-a949-d8af1d70ec12
2025-04-26 13:20:02,462 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d6229734-e8ec-4482-a6c7-b4470755aa1d
2025-04-26 13:20:02,468 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d6229734-e8ec-4482-a6c7-b4470755aa1d
2025-04-26 13:20:02,474 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3a854409-f180-492b-aaa8-58b416f2eb4d
2025-04-26 13:20:02,484 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54134965:ctest-vn-15900711', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54134965', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '185636234490562329', 'uuid-lslong': '12198519312334515218'}, 'enable': 'true', 'created': '2025-04-26T13:20:00', 'last-modified': '2025-04-26T13:20:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.048235'}
2025-04-26 13:20:02,490 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 13:20:02,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15900711 passed
2025-04-26 13:20:02,490 - DEBUG - ====Verifying policy data for ctest-vn-15900711 in API_Server ======
2025-04-26 13:20:02,491 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-26 13:20:02,495 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e4fa536-d014-4d76-ba05-ec200c6ca779
2025-04-26 13:20:02,506 - DEBUG - Requesting: http://10.0.0.50:8082/project/b5048c02-1d5b-4d31-b50d-2a376f4f4d68
2025-04-26 13:20:02,573 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0293832b-f640-4719-a949-d8af1d70ec12
2025-04-26 13:20:02,582 - DEBUG - ==>Verifying data for policy with id: 4875c300-43f3-4a6d-8d25-930c23249e08, fqn: ['default-domain', 'ctest-TestBasicPolicy-54134965', 'ctest-policy-allow-all-46938307']
2025-04-26 13:20:02,582 - INFO - VN ctest-vn-15900711 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 13:20:02,582 - DEBUG - Verifying the vn in opserver
2025-04-26 13:20:02,582 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54134965:ctest-vn-15900711 virtual network link through opserver 10.0.0.50
2025-04-26 13:20:02,582 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-26 13:20:02,871 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-26 13:20:02,919 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54134965:ctest-vn-15900711', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54134965:ctest-vn-15900711?flat'}
2025-04-26 13:20:02,919 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54134965:ctest-vn-15900711 is found in opserver
2025-04-26 13:20:02,929 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 13:20:02,934 - DEBUG - VRF ids for VN ctest-vn-15900711: {}
2025-04-26 13:20:02,934 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-26 13:20:02,939 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e4fa536-d014-4d76-ba05-ec200c6ca779
2025-04-26 13:20:02,949 - DEBUG - Requesting: http://10.0.0.50:8082/project/b5048c02-1d5b-4d31-b50d-2a376f4f4d68
2025-04-26 13:20:03,017 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/52d931a6-3e53-4dd7-835f-2abd1f426600
2025-04-26 13:20:03,029 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/52d931a6-3e53-4dd7-835f-2abd1f426600
2025-04-26 13:20:03,038 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/09766941-7b8c-4f10-a991-b615613eabb3
2025-04-26 13:20:03,045 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/09766941-7b8c-4f10-a991-b615613eabb3
2025-04-26 13:20:03,052 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eeb149cd-5b4d-4528-a3c4-8fea81b60be0
2025-04-26 13:20:03,057 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 13:20:03,058 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/52d931a6-3e53-4dd7-835f-2abd1f426600
2025-04-26 13:20:03,066 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/09766941-7b8c-4f10-a991-b615613eabb3
2025-04-26 13:20:03,078 - INFO - Verified VN network id 10 for VN 52d931a6-3e53-4dd7-835f-2abd1f426600
2025-04-26 13:20:03,078 - INFO - Verifications in API Server for VN ctest-vn-40766517 passed
2025-04-26 13:20:03,078 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/52d931a6-3e53-4dd7-835f-2abd1f426600
2025-04-26 13:20:03,087 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/09766941-7b8c-4f10-a991-b615613eabb3
2025-04-26 13:20:03,092 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/09766941-7b8c-4f10-a991-b615613eabb3
2025-04-26 13:20:03,098 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eeb149cd-5b4d-4528-a3c4-8fea81b60be0
2025-04-26 13:20:03,108 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54134965:ctest-vn-40766517', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54134965', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5969857371136282071', 'uuid-lslong': '9466331933517702656'}, 'enable': 'true', 'created': '2025-04-26T13:20:00', 'last-modified': '2025-04-26T13:20:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.416602'}
2025-04-26 13:20:03,114 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 13:20:03,114 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40766517 passed
2025-04-26 13:20:03,114 - DEBUG - ====Verifying policy data for ctest-vn-40766517 in API_Server ======
2025-04-26 13:20:03,114 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-26 13:20:03,118 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e4fa536-d014-4d76-ba05-ec200c6ca779
2025-04-26 13:20:03,129 - DEBUG - Requesting: http://10.0.0.50:8082/project/b5048c02-1d5b-4d31-b50d-2a376f4f4d68
2025-04-26 13:20:03,197 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/52d931a6-3e53-4dd7-835f-2abd1f426600
2025-04-26 13:20:03,206 - DEBUG - ==>Verifying data for policy with id: 4875c300-43f3-4a6d-8d25-930c23249e08, fqn: ['default-domain', 'ctest-TestBasicPolicy-54134965', 'ctest-policy-allow-all-46938307']
2025-04-26 13:20:03,206 - INFO - VN ctest-vn-40766517 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 13:20:03,207 - DEBUG - Verifying the vn in opserver
2025-04-26 13:20:03,207 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54134965:ctest-vn-40766517 virtual network link through opserver 10.0.0.50
2025-04-26 13:20:03,207 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-26 13:20:03,216 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54134965:ctest-vn-40766517', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54134965:ctest-vn-40766517?flat'}
2025-04-26 13:20:03,216 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54134965:ctest-vn-40766517 is found in opserver
2025-04-26 13:20:03,226 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 13:20:03,231 - DEBUG - VRF ids for VN ctest-vn-40766517: {}
2025-04-26 13:20:03,282 - DEBUG - Services list from nova: [