2025-04-11 14:58:38,880 - INFO - Domain Default found not creating
2025-04-11 14:58:39,053 - INFO - Project ctest-TestBasicPolicy-40589692 not found, creating it
2025-04-11 14:58:39,547 - INFO - Created Project:ctest-TestBasicPolicy-40589692, ID : a0144888-f670-45e3-91c4-23becfe8666b
2025-04-11 14:58:41,090 - INFO - ================================================================================
2025-04-11 14:58:41,091 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-11 14:58:41,091 - 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-11 14:58:41,351 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-11 14:58:41,351 - INFO - Initial checks done. Running the testcase now
2025-04-11 14:58:41,351 - INFO -
2025-04-11 14:58:41,936 - DEBUG - Response for create_network : {'network': {'id': '6351e54e-3d44-4e12-8d20-7a2c846d5abc', 'name': 'ctest-vn-49642978', 'tenant_id': 'a0144888f67045e391c423becfe8666b', 'project_id': 'a0144888f67045e391c423becfe8666b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40589692', 'ctest-vn-49642978'], 'port_security_enabled': True, 'description': ''}}
2025-04-11 14:58:42,115 - DEBUG - Response for create_subnet : {'subnet': {'id': '8617d89d-e70f-45d6-be2d-f2694c4868c5', 'name': '', 'tenant_id': 'a0144888f67045e391c423becfe8666b', 'network_id': '6351e54e-3d44-4e12-8d20-7a2c846d5abc', 'ip_version': 4, 'cidr': '205.154.72.0/26', 'allocation_pools': [{'start': '205.154.72.2', 'end': '205.154.72.62'}], 'gateway_ip': '205.154.72.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.154.72.2', 'tags': [], 'project_id': 'a0144888f67045e391c423becfe8666b'}}
2025-04-11 14:58:42,134 - INFO - Created VN ctest-vn-49642978
2025-04-11 14:58:42,187 - DEBUG - VN ctest-vn-49642978 UUID is 6351e54e-3d44-4e12-8d20-7a2c846d5abc
2025-04-11 14:58:42,511 - DEBUG - Response for create_network : {'network': {'id': 'f8be0c1e-f20a-4e06-8796-012be195b46c', 'name': 'ctest-vn-90169196', 'tenant_id': 'a0144888f67045e391c423becfe8666b', 'project_id': 'a0144888f67045e391c423becfe8666b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40589692', 'ctest-vn-90169196'], 'port_security_enabled': True, 'description': ''}}
2025-04-11 14:58:42,715 - DEBUG - Response for create_subnet : {'subnet': {'id': '0400a71d-711f-4f64-8eaa-1482c08a05ec', 'name': '', 'tenant_id': 'a0144888f67045e391c423becfe8666b', 'network_id': 'f8be0c1e-f20a-4e06-8796-012be195b46c', 'ip_version': 4, 'cidr': '89.40.64.128/26', 'allocation_pools': [{'start': '89.40.64.130', 'end': '89.40.64.190'}], 'gateway_ip': '89.40.64.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.40.64.130', 'tags': [], 'project_id': 'a0144888f67045e391c423becfe8666b'}}
2025-04-11 14:58:42,734 - INFO - Created VN ctest-vn-90169196
2025-04-11 14:58:42,791 - DEBUG - VN ctest-vn-90169196 UUID is f8be0c1e-f20a-4e06-8796-012be195b46c
2025-04-11 14:58:42,914 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40589692:ctest-vn-49642978, 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-40589692:ctest-vn-90169196, 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-11 14:58:43,222 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6351e54e-3d44-4e12-8d20-7a2c846d5abc', 'name': 'ctest-vn-49642978', 'tenant_id': 'a0144888f67045e391c423becfe8666b', 'project_id': 'a0144888f67045e391c423becfe8666b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8617d89d-e70f-45d6-be2d-f2694c4868c5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40589692', 'ctest-vn-49642978'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40589692', 'ctest-policy-allow-all-90585694']], 'subnet_ipam': [{'subnet_cidr': '205.154.72.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-11 14:58:43,468 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8be0c1e-f20a-4e06-8796-012be195b46c', 'name': 'ctest-vn-90169196', 'tenant_id': 'a0144888f67045e391c423becfe8666b', 'project_id': 'a0144888f67045e391c423becfe8666b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0400a71d-711f-4f64-8eaa-1482c08a05ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40589692', 'ctest-vn-90169196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40589692', 'ctest-policy-allow-all-90585694']], 'subnet_ipam': [{'subnet_cidr': '89.40.64.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-11 14:58:43,635 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-11 14:58:43,938 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-11 14:58:43,967 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d9f8fd0d-53f4-49f1-a222-b449fc2c3fe0
2025-04-11 14:58:43,981 - DEBUG - Requesting: http://10.0.0.38:8082/project/a0144888-f670-45e3-91c4-23becfe8666b
2025-04-11 14:58:44,058 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6351e54e-3d44-4e12-8d20-7a2c846d5abc
2025-04-11 14:58:44,071 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6351e54e-3d44-4e12-8d20-7a2c846d5abc
2025-04-11 14:58:44,082 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/36b6a3ae-d01a-4b35-9393-3d9fc7e4f791
2025-04-11 14:58:44,090 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/36b6a3ae-d01a-4b35-9393-3d9fc7e4f791
2025-04-11 14:58:44,098 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f022343d-833f-445c-9524-3d010f885614
2025-04-11 14:58:44,106 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-11 14:58:44,107 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6351e54e-3d44-4e12-8d20-7a2c846d5abc
2025-04-11 14:58:44,117 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/36b6a3ae-d01a-4b35-9393-3d9fc7e4f791
2025-04-11 14:58:44,135 - INFO - Verified VN network id 8 for VN 6351e54e-3d44-4e12-8d20-7a2c846d5abc
2025-04-11 14:58:44,135 - INFO - Verifications in API Server for VN ctest-vn-49642978 passed
2025-04-11 14:58:44,136 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6351e54e-3d44-4e12-8d20-7a2c846d5abc
2025-04-11 14:58:44,147 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/36b6a3ae-d01a-4b35-9393-3d9fc7e4f791
2025-04-11 14:58:44,155 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/36b6a3ae-d01a-4b35-9393-3d9fc7e4f791
2025-04-11 14:58:44,164 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f022343d-833f-445c-9524-3d010f885614
2025-04-11 14:58:44,178 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40589692:ctest-vn-49642978', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40589692', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7156753407066525202', 'uuid-lslong': '10169262290221488828'}, 'enable': 'true', 'created': '2025-04-11T14:58:41', 'last-modified': '2025-04-11T14:58:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983301'}
2025-04-11 14:58:44,187 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-11 14:58:44,187 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49642978 passed
2025-04-11 14:58:44,187 - DEBUG - ====Verifying policy data for ctest-vn-49642978 in API_Server ======
2025-04-11 14:58:44,187 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-11 14:58:44,194 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d9f8fd0d-53f4-49f1-a222-b449fc2c3fe0
2025-04-11 14:58:44,209 - DEBUG - Requesting: http://10.0.0.38:8082/project/a0144888-f670-45e3-91c4-23becfe8666b
2025-04-11 14:58:44,288 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6351e54e-3d44-4e12-8d20-7a2c846d5abc
2025-04-11 14:58:44,302 - DEBUG - ==>Verifying data for policy with id: 20ac565c-c89f-4706-8440-e9f83b000055, fqn: ['default-domain', 'ctest-TestBasicPolicy-40589692', 'ctest-policy-allow-all-90585694']
2025-04-11 14:58:44,303 - INFO - VN ctest-vn-49642978 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-11 14:58:44,303 - DEBUG - Verifying the vn in opserver
2025-04-11 14:58:44,303 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40589692:ctest-vn-49642978 virtual network link through opserver 10.0.0.38
2025-04-11 14:58:44,303 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-11 14:58:44,616 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-11 14:58:44,675 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40589692:ctest-vn-49642978', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40589692:ctest-vn-49642978?flat'}
2025-04-11 14:58:44,675 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40589692:ctest-vn-49642978 is found in opserver
2025-04-11 14:58:44,687 - DEBUG - Do not have enough data to verify VN in agent
2025-04-11 14:58:44,693 - DEBUG - VRF ids for VN ctest-vn-49642978: {}
2025-04-11 14:58:44,693 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-11 14:58:44,699 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d9f8fd0d-53f4-49f1-a222-b449fc2c3fe0
2025-04-11 14:58:44,713 - DEBUG - Requesting: http://10.0.0.38:8082/project/a0144888-f670-45e3-91c4-23becfe8666b
2025-04-11 14:58:44,795 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8be0c1e-f20a-4e06-8796-012be195b46c
2025-04-11 14:58:44,808 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8be0c1e-f20a-4e06-8796-012be195b46c
2025-04-11 14:58:44,819 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/74a89025-a764-42dd-abac-a6b45b4028fe
2025-04-11 14:58:44,827 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/74a89025-a764-42dd-abac-a6b45b4028fe
2025-04-11 14:58:44,835 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ed3e408c-8c54-4057-bac2-1c74957dd4b3
2025-04-11 14:58:44,844 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-11 14:58:44,844 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8be0c1e-f20a-4e06-8796-012be195b46c
2025-04-11 14:58:44,854 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/74a89025-a764-42dd-abac-a6b45b4028fe
2025-04-11 14:58:44,873 - INFO - Verified VN network id 9 for VN f8be0c1e-f20a-4e06-8796-012be195b46c
2025-04-11 14:58:44,873 - INFO - Verifications in API Server for VN ctest-vn-90169196 passed
2025-04-11 14:58:44,873 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8be0c1e-f20a-4e06-8796-012be195b46c
2025-04-11 14:58:44,885 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/74a89025-a764-42dd-abac-a6b45b4028fe
2025-04-11 14:58:44,895 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/74a89025-a764-42dd-abac-a6b45b4028fe
2025-04-11 14:58:44,905 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ed3e408c-8c54-4057-bac2-1c74957dd4b3
2025-04-11 14:58:44,919 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40589692:ctest-vn-90169196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40589692', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17923776894030466566', 'uuid-lslong': '9769997729606775916'}, 'enable': 'true', 'created': '2025-04-11T14:58:42', 'last-modified': '2025-04-11T14:58:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481453'}
2025-04-11 14:58:44,925 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-11 14:58:44,926 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90169196 passed
2025-04-11 14:58:44,926 - DEBUG - ====Verifying policy data for ctest-vn-90169196 in API_Server ======
2025-04-11 14:58:44,926 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-11 14:58:44,933 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d9f8fd0d-53f4-49f1-a222-b449fc2c3fe0
2025-04-11 14:58:44,945 - DEBUG - Requesting: http://10.0.0.38:8082/project/a0144888-f670-45e3-91c4-23becfe8666b
2025-04-11 14:58:45,022 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8be0c1e-f20a-4e06-8796-012be195b46c
2025-04-11 14:58:45,033 - DEBUG - ==>Verifying data for policy with id: 20ac565c-c89f-4706-8440-e9f83b000055, fqn: ['default-domain', 'ctest-TestBasicPolicy-40589692', 'ctest-policy-allow-all-90585694']
2025-04-11 14:58:45,033 - INFO - VN ctest-vn-90169196 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-11 14:58:45,033 - DEBUG - Verifying the vn in opserver
2025-04-11 14:58:45,033 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40589692:ctest-vn-90169196 virtual network link through opserver 10.0.0.38
2025-04-11 14:58:45,033 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-11 14:58:45,045 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40589692:ctest-vn-90169196', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40589692:ctest-vn-90169196?flat'}
2025-04-11 14:58:45,045 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40589692:ctest-vn-90169196 is found in opserver
2025-04-11 14:58:45,057 - DEBUG - Do not have enough data to verify VN in agent
2025-04-11 14:58:45,063 - DEBUG - VRF ids for VN ctest-vn-90169196: {}
2025-04-11 14:58:45,125 - DEBUG - Services list from nova: [