2025-05-26 02:19:50,036 - INFO - Domain Default found not creating
2025-05-26 02:19:50,256 - INFO - Project ctest-TestBasicPolicy-43941178 not found, creating it
2025-05-26 02:19:50,763 - INFO - Created Project:ctest-TestBasicPolicy-43941178, ID : 23cab25f-68a1-48dd-8dec-96fd4927ed65
2025-05-26 02:19:52,220 - INFO - ================================================================================
2025-05-26 02:19:52,220 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-26 02:19:52,220 - 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-05-26 02:19:52,474 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.192': '0'}} with
2025-05-26 02:19:52,474 - INFO - Initial checks done. Running the testcase now
2025-05-26 02:19:52,474 - INFO -
2025-05-26 02:19:53,020 - DEBUG - Response for create_network : {'network': {'id': 'f671cb8d-c951-4ef2-8f87-1d1e71cc8cde', 'name': 'ctest-vn-10113372', 'tenant_id': '23cab25f68a148dd8dec96fd4927ed65', 'project_id': '23cab25f68a148dd8dec96fd4927ed65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43941178', 'ctest-vn-10113372'], 'port_security_enabled': True, 'description': ''}}
2025-05-26 02:19:53,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d987d5b-32cd-4a99-b56e-ceab88a8340c', 'name': '', 'tenant_id': '23cab25f68a148dd8dec96fd4927ed65', 'network_id': 'f671cb8d-c951-4ef2-8f87-1d1e71cc8cde', 'ip_version': 4, 'cidr': '79.62.90.0/26', 'allocation_pools': [{'start': '79.62.90.2', 'end': '79.62.90.62'}], 'gateway_ip': '79.62.90.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.62.90.2', 'tags': [], 'project_id': '23cab25f68a148dd8dec96fd4927ed65'}}
2025-05-26 02:19:53,196 - INFO - Created VN ctest-vn-10113372
2025-05-26 02:19:53,252 - DEBUG - VN ctest-vn-10113372 UUID is f671cb8d-c951-4ef2-8f87-1d1e71cc8cde
2025-05-26 02:19:53,560 - DEBUG - Response for create_network : {'network': {'id': 'ddf91ff6-19b3-4762-b685-b6cc402ef98b', 'name': 'ctest-vn-92704047', 'tenant_id': '23cab25f68a148dd8dec96fd4927ed65', 'project_id': '23cab25f68a148dd8dec96fd4927ed65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43941178', 'ctest-vn-92704047'], 'port_security_enabled': True, 'description': ''}}
2025-05-26 02:19:53,727 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dfcaa055-4f90-4c4f-9deb-fceff992ea70', 'name': '', 'tenant_id': '23cab25f68a148dd8dec96fd4927ed65', 'network_id': 'ddf91ff6-19b3-4762-b685-b6cc402ef98b', 'ip_version': 4, 'cidr': '206.150.122.192/26', 'allocation_pools': [{'start': '206.150.122.194', 'end': '206.150.122.254'}], 'gateway_ip': '206.150.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.150.122.194', 'tags': [], 'project_id': '23cab25f68a148dd8dec96fd4927ed65'}}
2025-05-26 02:19:53,746 - INFO - Created VN ctest-vn-92704047
2025-05-26 02:19:53,796 - DEBUG - VN ctest-vn-92704047 UUID is ddf91ff6-19b3-4762-b685-b6cc402ef98b
2025-05-26 02:19:54,028 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43941178:ctest-vn-10113372, 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-43941178:ctest-vn-92704047, 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-05-26 02:19:54,337 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f671cb8d-c951-4ef2-8f87-1d1e71cc8cde', 'name': 'ctest-vn-10113372', 'tenant_id': '23cab25f68a148dd8dec96fd4927ed65', 'project_id': '23cab25f68a148dd8dec96fd4927ed65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d987d5b-32cd-4a99-b56e-ceab88a8340c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43941178', 'ctest-vn-10113372'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43941178', 'ctest-policy-allow-all-29132098']], 'subnet_ipam': [{'subnet_cidr': '79.62.90.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-26 02:19:54,641 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddf91ff6-19b3-4762-b685-b6cc402ef98b', 'name': 'ctest-vn-92704047', 'tenant_id': '23cab25f68a148dd8dec96fd4927ed65', 'project_id': '23cab25f68a148dd8dec96fd4927ed65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dfcaa055-4f90-4c4f-9deb-fceff992ea70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43941178', 'ctest-vn-92704047'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43941178', 'ctest-policy-allow-all-29132098']], 'subnet_ipam': [{'subnet_cidr': '206.150.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-26 02:19:54,808 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-05-26 02:19:55,103 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-05-26 02:19:55,132 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4262c944-8ab4-4356-aff4-af2d7e0d36a8
2025-05-26 02:19:55,145 - DEBUG - Requesting: http://10.0.0.130:8082/project/23cab25f-68a1-48dd-8dec-96fd4927ed65
2025-05-26 02:19:55,222 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/f671cb8d-c951-4ef2-8f87-1d1e71cc8cde
2025-05-26 02:19:55,234 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/f671cb8d-c951-4ef2-8f87-1d1e71cc8cde
2025-05-26 02:19:55,245 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/dc939244-37c2-4798-ade3-d164d49a1e5c
2025-05-26 02:19:55,253 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/dc939244-37c2-4798-ade3-d164d49a1e5c
2025-05-26 02:19:55,261 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/56a6fbfc-48a7-49da-82e9-67c8083198d5
2025-05-26 02:19:55,269 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-26 02:19:55,269 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/f671cb8d-c951-4ef2-8f87-1d1e71cc8cde
2025-05-26 02:19:55,279 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/dc939244-37c2-4798-ade3-d164d49a1e5c
2025-05-26 02:19:55,294 - INFO - Verified VN network id 8 for VN f671cb8d-c951-4ef2-8f87-1d1e71cc8cde
2025-05-26 02:19:55,294 - INFO - Verifications in API Server for VN ctest-vn-10113372 passed
2025-05-26 02:19:55,294 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/f671cb8d-c951-4ef2-8f87-1d1e71cc8cde
2025-05-26 02:19:55,304 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/dc939244-37c2-4798-ade3-d164d49a1e5c
2025-05-26 02:19:55,312 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/dc939244-37c2-4798-ade3-d164d49a1e5c
2025-05-26 02:19:55,320 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/56a6fbfc-48a7-49da-82e9-67c8083198d5
2025-05-26 02:19:55,333 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43941178:ctest-vn-10113372', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43941178', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17758198615526952690', 'uuid-lslong': '10342267085875088606'}, 'enable': 'true', 'created': '2025-05-26T02:19:52', 'last-modified': '2025-05-26T02:19:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.027865'}
2025-05-26 02:19:55,340 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-26 02:19:55,340 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10113372 passed
2025-05-26 02:19:55,341 - DEBUG - ====Verifying policy data for ctest-vn-10113372 in API_Server ======
2025-05-26 02:19:55,341 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-05-26 02:19:55,354 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4262c944-8ab4-4356-aff4-af2d7e0d36a8
2025-05-26 02:19:55,367 - DEBUG - Requesting: http://10.0.0.130:8082/project/23cab25f-68a1-48dd-8dec-96fd4927ed65
2025-05-26 02:19:55,444 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/f671cb8d-c951-4ef2-8f87-1d1e71cc8cde
2025-05-26 02:19:55,454 - DEBUG - ==>Verifying data for policy with id: 355e6c15-75ac-4b17-ac94-0b59e6b4c3dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-43941178', 'ctest-policy-allow-all-29132098']
2025-05-26 02:19:55,454 - INFO - VN ctest-vn-10113372 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-26 02:19:55,454 - DEBUG - Verifying the vn in opserver
2025-05-26 02:19:55,454 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43941178:ctest-vn-10113372 virtual network link through opserver 10.0.0.130
2025-05-26 02:19:55,454 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-05-26 02:19:55,752 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-05-26 02:19:55,815 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43941178:ctest-vn-10113372', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43941178:ctest-vn-10113372?flat'}
2025-05-26 02:19:55,815 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43941178:ctest-vn-10113372 is found in opserver
2025-05-26 02:19:55,827 - DEBUG - Do not have enough data to verify VN in agent
2025-05-26 02:19:55,832 - DEBUG - VRF ids for VN ctest-vn-10113372: {}
2025-05-26 02:19:55,832 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-05-26 02:19:55,839 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4262c944-8ab4-4356-aff4-af2d7e0d36a8
2025-05-26 02:19:55,852 - DEBUG - Requesting: http://10.0.0.130:8082/project/23cab25f-68a1-48dd-8dec-96fd4927ed65
2025-05-26 02:19:55,931 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ddf91ff6-19b3-4762-b685-b6cc402ef98b
2025-05-26 02:19:55,948 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ddf91ff6-19b3-4762-b685-b6cc402ef98b
2025-05-26 02:19:55,960 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8d2a010a-3136-4902-abaa-0eafd682d01c
2025-05-26 02:19:55,970 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8d2a010a-3136-4902-abaa-0eafd682d01c
2025-05-26 02:19:55,978 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5bf55c29-fafe-4c1a-b7ee-2b84bd709637
2025-05-26 02:19:55,986 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-26 02:19:55,986 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ddf91ff6-19b3-4762-b685-b6cc402ef98b
2025-05-26 02:19:55,997 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8d2a010a-3136-4902-abaa-0eafd682d01c
2025-05-26 02:19:56,013 - INFO - Verified VN network id 9 for VN ddf91ff6-19b3-4762-b685-b6cc402ef98b
2025-05-26 02:19:56,013 - INFO - Verifications in API Server for VN ctest-vn-92704047 passed
2025-05-26 02:19:56,013 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ddf91ff6-19b3-4762-b685-b6cc402ef98b
2025-05-26 02:19:56,023 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8d2a010a-3136-4902-abaa-0eafd682d01c
2025-05-26 02:19:56,044 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8d2a010a-3136-4902-abaa-0eafd682d01c
2025-05-26 02:19:56,052 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5bf55c29-fafe-4c1a-b7ee-2b84bd709637
2025-05-26 02:19:56,072 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43941178:ctest-vn-92704047', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43941178', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15994850693436622690', 'uuid-lslong': '13152119275171805579'}, 'enable': 'true', 'created': '2025-05-26T02:19:53', 'last-modified': '2025-05-26T02:19:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.460740'}
2025-05-26 02:19:56,079 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-26 02:19:56,079 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92704047 passed
2025-05-26 02:19:56,079 - DEBUG - ====Verifying policy data for ctest-vn-92704047 in API_Server ======
2025-05-26 02:19:56,079 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-05-26 02:19:56,085 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4262c944-8ab4-4356-aff4-af2d7e0d36a8
2025-05-26 02:19:56,097 - DEBUG - Requesting: http://10.0.0.130:8082/project/23cab25f-68a1-48dd-8dec-96fd4927ed65
2025-05-26 02:19:56,189 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ddf91ff6-19b3-4762-b685-b6cc402ef98b
2025-05-26 02:19:56,200 - DEBUG - ==>Verifying data for policy with id: 355e6c15-75ac-4b17-ac94-0b59e6b4c3dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-43941178', 'ctest-policy-allow-all-29132098']
2025-05-26 02:19:56,200 - INFO - VN ctest-vn-92704047 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-26 02:19:56,200 - DEBUG - Verifying the vn in opserver
2025-05-26 02:19:56,200 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43941178:ctest-vn-92704047 virtual network link through opserver 10.0.0.130
2025-05-26 02:19:56,200 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-05-26 02:19:56,212 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43941178:ctest-vn-92704047', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43941178:ctest-vn-92704047?flat'}
2025-05-26 02:19:56,212 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43941178:ctest-vn-92704047 is found in opserver
2025-05-26 02:19:56,225 - DEBUG - Do not have enough data to verify VN in agent
2025-05-26 02:19:56,232 - DEBUG - VRF ids for VN ctest-vn-92704047: {}
2025-05-26 02:19:56,291 - DEBUG - Services list from nova: [