2025-05-06 11:37:47,760 - INFO - Domain Default found not creating
2025-05-06 11:37:47,875 - INFO - Project ctest-TestBasicPolicy-54967965 not found, creating it
2025-05-06 11:37:48,381 - INFO - Created Project:ctest-TestBasicPolicy-54967965, ID : 80fe83fe-42dc-4f0c-8e0d-0f7a296914c8
2025-05-06 11:37:49,739 - INFO - ================================================================================
2025-05-06 11:37:49,739 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-06 11:37:49,739 - 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-06 11:37:50,002 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.254': '0'}} with
2025-05-06 11:37:50,002 - INFO - Initial checks done. Running the testcase now
2025-05-06 11:37:50,002 - INFO -
2025-05-06 11:37:50,515 - DEBUG - Response for create_network : {'network': {'id': '7c116935-b27a-4c6d-b4d0-b9cdd8caa098', 'name': 'ctest-vn-09556020', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-vn-09556020'], 'port_security_enabled': True, 'description': ''}}
2025-05-06 11:37:50,687 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e3d3c7b-7285-4d51-8bb5-a0e0282b4b14', 'name': '', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'network_id': '7c116935-b27a-4c6d-b4d0-b9cdd8caa098', 'ip_version': 4, 'cidr': '2.110.75.0/26', 'allocation_pools': [{'start': '2.110.75.2', 'end': '2.110.75.62'}], 'gateway_ip': '2.110.75.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.110.75.2', 'tags': [], 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8'}}
2025-05-06 11:37:50,703 - INFO - Created VN ctest-vn-09556020
2025-05-06 11:37:50,753 - DEBUG - VN ctest-vn-09556020 UUID is 7c116935-b27a-4c6d-b4d0-b9cdd8caa098
2025-05-06 11:37:51,046 - DEBUG - Response for create_network : {'network': {'id': 'a6605834-430c-4c05-b297-7fdbcb63358a', 'name': 'ctest-vn-21948071', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-vn-21948071'], 'port_security_enabled': True, 'description': ''}}
2025-05-06 11:37:51,226 - DEBUG - Response for create_subnet : {'subnet': {'id': '96cd2731-6ab5-4044-a4cc-3d9ccce348da', 'name': '', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'network_id': 'a6605834-430c-4c05-b297-7fdbcb63358a', 'ip_version': 4, 'cidr': '166.70.71.0/26', 'allocation_pools': [{'start': '166.70.71.2', 'end': '166.70.71.62'}], 'gateway_ip': '166.70.71.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.70.71.2', 'tags': [], 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8'}}
2025-05-06 11:37:51,241 - INFO - Created VN ctest-vn-21948071
2025-05-06 11:37:51,297 - DEBUG - VN ctest-vn-21948071 UUID is a6605834-430c-4c05-b297-7fdbcb63358a
2025-05-06 11:37:51,521 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020, 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-54967965:ctest-vn-21948071, 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-06 11:37:51,805 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7c116935-b27a-4c6d-b4d0-b9cdd8caa098', 'name': 'ctest-vn-09556020', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e3d3c7b-7285-4d51-8bb5-a0e0282b4b14'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-vn-09556020'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-policy-allow-all-92069437']], 'subnet_ipam': [{'subnet_cidr': '2.110.75.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-06 11:37:52,048 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6605834-430c-4c05-b297-7fdbcb63358a', 'name': 'ctest-vn-21948071', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['96cd2731-6ab5-4044-a4cc-3d9ccce348da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-vn-21948071'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-policy-allow-all-92069437']], 'subnet_ipam': [{'subnet_cidr': '166.70.71.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-06 11:37:52,205 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-06 11:37:52,501 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-06 11:37:52,526 - DEBUG - Requesting: http://10.0.0.56:8082/domain/bee18e44-c6f4-430d-9162-eb0992cd3a63
2025-05-06 11:37:52,538 - DEBUG - Requesting: http://10.0.0.56:8082/project/80fe83fe-42dc-4f0c-8e0d-0f7a296914c8
2025-05-06 11:37:52,613 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7c116935-b27a-4c6d-b4d0-b9cdd8caa098
2025-05-06 11:37:52,624 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7c116935-b27a-4c6d-b4d0-b9cdd8caa098
2025-05-06 11:37:52,633 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a5eca8cb-d926-41bd-8d5e-c50fb11d08c6
2025-05-06 11:37:52,639 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a5eca8cb-d926-41bd-8d5e-c50fb11d08c6
2025-05-06 11:37:52,645 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/69181dc3-8051-45ef-8663-fd5ca78a171c
2025-05-06 11:37:52,650 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-06 11:37:52,650 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7c116935-b27a-4c6d-b4d0-b9cdd8caa098
2025-05-06 11:37:52,658 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a5eca8cb-d926-41bd-8d5e-c50fb11d08c6
2025-05-06 11:37:52,671 - INFO - Verified VN network id 8 for VN 7c116935-b27a-4c6d-b4d0-b9cdd8caa098
2025-05-06 11:37:52,671 - INFO - Verifications in API Server for VN ctest-vn-09556020 passed
2025-05-06 11:37:52,671 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7c116935-b27a-4c6d-b4d0-b9cdd8caa098
2025-05-06 11:37:52,679 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a5eca8cb-d926-41bd-8d5e-c50fb11d08c6
2025-05-06 11:37:52,685 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a5eca8cb-d926-41bd-8d5e-c50fb11d08c6
2025-05-06 11:37:52,690 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/69181dc3-8051-45ef-8663-fd5ca78a171c
2025-05-06 11:37:52,701 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54967965', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8940042414655687789', 'uuid-lslong': '13029118015739437208'}, 'enable': 'true', 'created': '2025-05-06T11:37:50', 'last-modified': '2025-05-06T11:37:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915572'}
2025-05-06 11:37:52,707 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-06 11:37:52,707 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09556020 passed
2025-05-06 11:37:52,707 - DEBUG - ====Verifying policy data for ctest-vn-09556020 in API_Server ======
2025-05-06 11:37:52,707 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-06 11:37:52,711 - DEBUG - Requesting: http://10.0.0.56:8082/domain/bee18e44-c6f4-430d-9162-eb0992cd3a63
2025-05-06 11:37:52,723 - DEBUG - Requesting: http://10.0.0.56:8082/project/80fe83fe-42dc-4f0c-8e0d-0f7a296914c8
2025-05-06 11:37:52,807 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7c116935-b27a-4c6d-b4d0-b9cdd8caa098
2025-05-06 11:37:52,816 - DEBUG - ==>Verifying data for policy with id: 5394f92d-4035-400f-9811-73b5f9f48f3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-policy-allow-all-92069437']
2025-05-06 11:37:52,816 - INFO - VN ctest-vn-09556020 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-06 11:37:52,817 - DEBUG - Verifying the vn in opserver
2025-05-06 11:37:52,817 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020 virtual network link through opserver 10.0.0.56
2025-05-06 11:37:52,817 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-05-06 11:37:53,118 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-05-06 11:37:53,166 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020?flat'}
2025-05-06 11:37:53,166 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020 is found in opserver
2025-05-06 11:37:53,177 - DEBUG - Do not have enough data to verify VN in agent
2025-05-06 11:37:53,181 - DEBUG - VRF ids for VN ctest-vn-09556020: {}
2025-05-06 11:37:53,181 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-06 11:37:53,187 - DEBUG - Requesting: http://10.0.0.56:8082/domain/bee18e44-c6f4-430d-9162-eb0992cd3a63
2025-05-06 11:37:53,197 - DEBUG - Requesting: http://10.0.0.56:8082/project/80fe83fe-42dc-4f0c-8e0d-0f7a296914c8
2025-05-06 11:37:53,268 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a6605834-430c-4c05-b297-7fdbcb63358a
2025-05-06 11:37:53,278 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a6605834-430c-4c05-b297-7fdbcb63358a
2025-05-06 11:37:53,287 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f8f8fc57-cc53-414d-82c6-3985e29db30c
2025-05-06 11:37:53,293 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f8f8fc57-cc53-414d-82c6-3985e29db30c
2025-05-06 11:37:53,299 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/15d88289-b760-400a-a802-5d3babc28626
2025-05-06 11:37:53,305 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-06 11:37:53,305 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a6605834-430c-4c05-b297-7fdbcb63358a
2025-05-06 11:37:53,313 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f8f8fc57-cc53-414d-82c6-3985e29db30c
2025-05-06 11:37:53,324 - INFO - Verified VN network id 9 for VN a6605834-430c-4c05-b297-7fdbcb63358a
2025-05-06 11:37:53,324 - INFO - Verifications in API Server for VN ctest-vn-21948071 passed
2025-05-06 11:37:53,324 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a6605834-430c-4c05-b297-7fdbcb63358a
2025-05-06 11:37:53,333 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f8f8fc57-cc53-414d-82c6-3985e29db30c
2025-05-06 11:37:53,338 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f8f8fc57-cc53-414d-82c6-3985e29db30c
2025-05-06 11:37:53,344 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/15d88289-b760-400a-a802-5d3babc28626
2025-05-06 11:37:53,355 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-21948071', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54967965', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11988679189546683397', 'uuid-lslong': '12868895042221323658'}, 'enable': 'true', 'created': '2025-05-06T11:37:51', 'last-modified': '2025-05-06T11:37:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344665'}
2025-05-06 11:37:53,361 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-06 11:37:53,361 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21948071 passed
2025-05-06 11:37:53,361 - DEBUG - ====Verifying policy data for ctest-vn-21948071 in API_Server ======
2025-05-06 11:37:53,361 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-06 11:37:53,366 - DEBUG - Requesting: http://10.0.0.56:8082/domain/bee18e44-c6f4-430d-9162-eb0992cd3a63
2025-05-06 11:37:53,376 - DEBUG - Requesting: http://10.0.0.56:8082/project/80fe83fe-42dc-4f0c-8e0d-0f7a296914c8
2025-05-06 11:37:53,443 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a6605834-430c-4c05-b297-7fdbcb63358a
2025-05-06 11:37:53,452 - DEBUG - ==>Verifying data for policy with id: 5394f92d-4035-400f-9811-73b5f9f48f3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-policy-allow-all-92069437']
2025-05-06 11:37:53,452 - INFO - VN ctest-vn-21948071 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-06 11:37:53,452 - DEBUG - Verifying the vn in opserver
2025-05-06 11:37:53,452 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-21948071 virtual network link through opserver 10.0.0.56
2025-05-06 11:37:53,452 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-05-06 11:37:53,461 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-21948071', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-21948071?flat'}
2025-05-06 11:37:53,462 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-21948071 is found in opserver
2025-05-06 11:37:53,471 - DEBUG - Do not have enough data to verify VN in agent
2025-05-06 11:37:53,476 - DEBUG - VRF ids for VN ctest-vn-21948071: {}
2025-05-06 11:37:53,524 - DEBUG - Services list from nova: [