2024-09-10 08:22:45,030 - INFO - Domain Default found not creating
2024-09-10 08:22:45,201 - INFO - Project ctest-TestBasicPolicy-88576972 not found, creating it
2024-09-10 08:22:45,687 - INFO - Created Project:ctest-TestBasicPolicy-88576972, ID : ae0968a9-f7db-4758-a19c-f78cab00e4bb
2024-09-10 08:22:47,221 - INFO - ================================================================================
2024-09-10 08:22:47,222 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-10 08:22:47,222 - 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-10 08:22:47,492 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with
2024-09-10 08:22:47,493 - INFO - Initial checks done. Running the testcase now
2024-09-10 08:22:47,493 - INFO -
2024-09-10 08:22:48,075 - DEBUG - Response for create_network : {'network': {'id': '57d94381-0315-4f8e-98ad-ea55981fd943', 'name': 'ctest-vn-54473477', 'tenant_id': 'ae0968a9f7db4758a19cf78cab00e4bb', 'project_id': 'ae0968a9f7db4758a19cf78cab00e4bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88576972', 'ctest-vn-54473477'], 'port_security_enabled': True, 'description': ''}}
2024-09-10 08:22:48,236 - DEBUG - Response for create_subnet : {'subnet': {'id': '18139e31-2de0-4267-adeb-2c62ab73bd0c', 'name': '', 'tenant_id': 'ae0968a9f7db4758a19cf78cab00e4bb', 'network_id': '57d94381-0315-4f8e-98ad-ea55981fd943', 'ip_version': 4, 'cidr': '168.56.207.0/26', 'allocation_pools': [{'start': '168.56.207.2', 'end': '168.56.207.62'}], 'gateway_ip': '168.56.207.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.56.207.2', 'tags': [], 'project_id': 'ae0968a9f7db4758a19cf78cab00e4bb'}}
2024-09-10 08:22:48,259 - INFO - Created VN ctest-vn-54473477
2024-09-10 08:22:48,312 - DEBUG - VN ctest-vn-54473477 UUID is 57d94381-0315-4f8e-98ad-ea55981fd943
2024-09-10 08:22:48,617 - DEBUG - Response for create_network : {'network': {'id': '49112273-6720-4fa0-a6d5-ae2f378fa5a4', 'name': 'ctest-vn-83261944', 'tenant_id': 'ae0968a9f7db4758a19cf78cab00e4bb', 'project_id': 'ae0968a9f7db4758a19cf78cab00e4bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88576972', 'ctest-vn-83261944'], 'port_security_enabled': True, 'description': ''}}
2024-09-10 08:22:48,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '814b60fb-03ec-49f0-b46c-a18bf1d0147b', 'name': '', 'tenant_id': 'ae0968a9f7db4758a19cf78cab00e4bb', 'network_id': '49112273-6720-4fa0-a6d5-ae2f378fa5a4', 'ip_version': 4, 'cidr': '184.151.188.64/26', 'allocation_pools': [{'start': '184.151.188.66', 'end': '184.151.188.126'}], 'gateway_ip': '184.151.188.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.151.188.66', 'tags': [], 'project_id': 'ae0968a9f7db4758a19cf78cab00e4bb'}}
2024-09-10 08:22:48,843 - INFO - Created VN ctest-vn-83261944
2024-09-10 08:22:48,896 - DEBUG - VN ctest-vn-83261944 UUID is 49112273-6720-4fa0-a6d5-ae2f378fa5a4
2024-09-10 08:22:49,014 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-54473477, 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-88576972:ctest-vn-83261944, 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-10 08:22:49,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57d94381-0315-4f8e-98ad-ea55981fd943', 'name': 'ctest-vn-54473477', 'tenant_id': 'ae0968a9f7db4758a19cf78cab00e4bb', 'project_id': 'ae0968a9f7db4758a19cf78cab00e4bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18139e31-2de0-4267-adeb-2c62ab73bd0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88576972', 'ctest-vn-54473477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88576972', 'ctest-policy-allow-all-62827496']], 'subnet_ipam': [{'subnet_cidr': '168.56.207.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-10 08:22:49,550 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '49112273-6720-4fa0-a6d5-ae2f378fa5a4', 'name': 'ctest-vn-83261944', 'tenant_id': 'ae0968a9f7db4758a19cf78cab00e4bb', 'project_id': 'ae0968a9f7db4758a19cf78cab00e4bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['814b60fb-03ec-49f0-b46c-a18bf1d0147b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88576972', 'ctest-vn-83261944'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88576972', 'ctest-policy-allow-all-62827496']], 'subnet_ipam': [{'subnet_cidr': '184.151.188.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-10 08:22:49,697 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-09-10 08:22:50,009 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-09-10 08:22:50,044 - DEBUG - Requesting: http://10.0.0.38:8082/domain/393c8b4a-8274-4d5f-ad11-4b837a7a76eb
2024-09-10 08:22:50,060 - DEBUG - Requesting: http://10.0.0.38:8082/project/ae0968a9-f7db-4758-a19c-f78cab00e4bb
2024-09-10 08:22:50,135 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57d94381-0315-4f8e-98ad-ea55981fd943
2024-09-10 08:22:50,149 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57d94381-0315-4f8e-98ad-ea55981fd943
2024-09-10 08:22:50,159 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0f98c79c-42f0-41f3-8684-9ffbb598abb8
2024-09-10 08:22:50,168 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0f98c79c-42f0-41f3-8684-9ffbb598abb8
2024-09-10 08:22:50,176 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/63d7ea81-fc12-45e1-b042-cc908233dbfe
2024-09-10 08:22:50,184 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-10 08:22:50,184 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57d94381-0315-4f8e-98ad-ea55981fd943
2024-09-10 08:22:50,193 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0f98c79c-42f0-41f3-8684-9ffbb598abb8
2024-09-10 08:22:50,206 - INFO - Verified VN network id 7 for VN 57d94381-0315-4f8e-98ad-ea55981fd943
2024-09-10 08:22:50,207 - INFO - Verifications in API Server for VN ctest-vn-54473477 passed
2024-09-10 08:22:50,207 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57d94381-0315-4f8e-98ad-ea55981fd943
2024-09-10 08:22:50,217 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0f98c79c-42f0-41f3-8684-9ffbb598abb8
2024-09-10 08:22:50,226 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0f98c79c-42f0-41f3-8684-9ffbb598abb8
2024-09-10 08:22:50,235 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/63d7ea81-fc12-45e1-b042-cc908233dbfe
2024-09-10 08:22:50,250 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-54473477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88576972', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6330164972627513230', 'uuid-lslong': '11001707118081333571'}, 'enable': 'true', 'created': '2024-09-10T08:22:48', 'last-modified': '2024-09-10T08:22:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962492'}
2024-09-10 08:22:50,257 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-10 08:22:50,257 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54473477 passed
2024-09-10 08:22:50,257 - DEBUG - ====Verifying policy data for ctest-vn-54473477 in API_Server ======
2024-09-10 08:22:50,257 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-09-10 08:22:50,264 - DEBUG - Requesting: http://10.0.0.38:8082/domain/393c8b4a-8274-4d5f-ad11-4b837a7a76eb
2024-09-10 08:22:50,279 - DEBUG - Requesting: http://10.0.0.38:8082/project/ae0968a9-f7db-4758-a19c-f78cab00e4bb
2024-09-10 08:22:50,354 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57d94381-0315-4f8e-98ad-ea55981fd943
2024-09-10 08:22:50,366 - DEBUG - ==>Verifying data for policy with id: 8bde769e-1e2d-40f2-9d71-d91f142675bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-88576972', 'ctest-policy-allow-all-62827496']
2024-09-10 08:22:50,366 - INFO - VN ctest-vn-54473477 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-10 08:22:50,366 - DEBUG - Verifying the vn in opserver
2024-09-10 08:22:50,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-54473477 virtual network link through opserver 10.0.0.38
2024-09-10 08:22:50,367 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-09-10 08:22:50,671 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-09-10 08:22:50,733 - DEBUG - Response Code: 500
2024-09-10 08:22:53,734 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-54473477 virtual network link through opserver 10.0.0.38
2024-09-10 08:22:53,734 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-09-10 08:22:53,747 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-54473477', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-54473477?flat'}
2024-09-10 08:22:53,747 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-54473477 is found in opserver
2024-09-10 08:22:53,759 - DEBUG - Do not have enough data to verify VN in agent
2024-09-10 08:22:53,765 - DEBUG - VRF ids for VN ctest-vn-54473477: {}
2024-09-10 08:22:53,765 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-09-10 08:22:53,771 - DEBUG - Requesting: http://10.0.0.38:8082/domain/393c8b4a-8274-4d5f-ad11-4b837a7a76eb
2024-09-10 08:22:53,785 - DEBUG - Requesting: http://10.0.0.38:8082/project/ae0968a9-f7db-4758-a19c-f78cab00e4bb
2024-09-10 08:22:53,861 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/49112273-6720-4fa0-a6d5-ae2f378fa5a4
2024-09-10 08:22:53,874 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/49112273-6720-4fa0-a6d5-ae2f378fa5a4
2024-09-10 08:22:53,884 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80cbcf9f-ec8b-4343-88df-eaf41c2b7e2a
2024-09-10 08:22:53,892 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80cbcf9f-ec8b-4343-88df-eaf41c2b7e2a
2024-09-10 08:22:53,902 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/40611bd0-8b4c-45a3-bee9-dd0388b88c33
2024-09-10 08:22:53,911 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-10 08:22:53,911 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/49112273-6720-4fa0-a6d5-ae2f378fa5a4
2024-09-10 08:22:53,922 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80cbcf9f-ec8b-4343-88df-eaf41c2b7e2a
2024-09-10 08:22:53,936 - INFO - Verified VN network id 8 for VN 49112273-6720-4fa0-a6d5-ae2f378fa5a4
2024-09-10 08:22:53,937 - INFO - Verifications in API Server for VN ctest-vn-83261944 passed
2024-09-10 08:22:53,937 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/49112273-6720-4fa0-a6d5-ae2f378fa5a4
2024-09-10 08:22:53,946 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80cbcf9f-ec8b-4343-88df-eaf41c2b7e2a
2024-09-10 08:22:53,954 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80cbcf9f-ec8b-4343-88df-eaf41c2b7e2a
2024-09-10 08:22:53,962 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/40611bd0-8b4c-45a3-bee9-dd0388b88c33
2024-09-10 08:22:53,977 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-83261944', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88576972', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5265027318419574688', 'uuid-lslong': '12021706298154263972'}, 'enable': 'true', 'created': '2024-09-10T08:22:48', 'last-modified': '2024-09-10T08:22:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.451186'}
2024-09-10 08:22:53,984 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-10 08:22:53,984 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83261944 passed
2024-09-10 08:22:53,984 - DEBUG - ====Verifying policy data for ctest-vn-83261944 in API_Server ======
2024-09-10 08:22:53,985 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-09-10 08:22:53,991 - DEBUG - Requesting: http://10.0.0.38:8082/domain/393c8b4a-8274-4d5f-ad11-4b837a7a76eb
2024-09-10 08:22:54,006 - DEBUG - Requesting: http://10.0.0.38:8082/project/ae0968a9-f7db-4758-a19c-f78cab00e4bb
2024-09-10 08:22:54,076 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/49112273-6720-4fa0-a6d5-ae2f378fa5a4
2024-09-10 08:22:54,085 - DEBUG - ==>Verifying data for policy with id: 8bde769e-1e2d-40f2-9d71-d91f142675bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-88576972', 'ctest-policy-allow-all-62827496']
2024-09-10 08:22:54,085 - INFO - VN ctest-vn-83261944 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-10 08:22:54,085 - DEBUG - Verifying the vn in opserver
2024-09-10 08:22:54,085 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-83261944 virtual network link through opserver 10.0.0.38
2024-09-10 08:22:54,085 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-09-10 08:22:54,098 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-83261944', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-83261944?flat'}
2024-09-10 08:22:54,098 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88576972:ctest-vn-83261944 is found in opserver
2024-09-10 08:22:54,110 - DEBUG - Do not have enough data to verify VN in agent
2024-09-10 08:22:54,115 - DEBUG - VRF ids for VN ctest-vn-83261944: {}
2024-09-10 08:22:54,187 - DEBUG - Services list from nova: [