2025-06-01 18:00:17,696 - INFO - Domain Default found not creating
2025-06-01 18:00:17,831 - INFO - Project ctest-TestBasicPolicy-02506064 not found, creating it
2025-06-01 18:00:18,270 - INFO - Created Project:ctest-TestBasicPolicy-02506064, ID : 178bd3fb-c690-4d1a-b89b-857e07781f80
2025-06-01 18:00:19,795 - INFO - ================================================================================
2025-06-01 18:00:19,796 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-01 18:00:19,796 - 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-06-01 18:00:20,051 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-01 18:00:20,051 - INFO - Initial checks done. Running the testcase now
2025-06-01 18:00:20,051 - INFO -
2025-06-01 18:00:20,631 - DEBUG - Response for create_network : {'network': {'id': 'f8a1f80b-d7b8-4b7b-951a-c7e69c449110', 'name': 'ctest-vn-12148588', 'tenant_id': '178bd3fbc6904d1ab89b857e07781f80', 'project_id': '178bd3fbc6904d1ab89b857e07781f80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02506064', 'ctest-vn-12148588'], 'port_security_enabled': True, 'description': ''}}
2025-06-01 18:00:20,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '9846b4c7-3612-409d-9661-71a32e9410fd', 'name': '', 'tenant_id': '178bd3fbc6904d1ab89b857e07781f80', 'network_id': 'f8a1f80b-d7b8-4b7b-951a-c7e69c449110', 'ip_version': 4, 'cidr': '104.88.206.0/26', 'allocation_pools': [{'start': '104.88.206.2', 'end': '104.88.206.62'}], 'gateway_ip': '104.88.206.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.88.206.2', 'tags': [], 'project_id': '178bd3fbc6904d1ab89b857e07781f80'}}
2025-06-01 18:00:20,841 - INFO - Created VN ctest-vn-12148588
2025-06-01 18:00:20,892 - DEBUG - VN ctest-vn-12148588 UUID is f8a1f80b-d7b8-4b7b-951a-c7e69c449110
2025-06-01 18:00:21,217 - DEBUG - Response for create_network : {'network': {'id': '312e4d57-5ea8-4709-9422-1ba44a801268', 'name': 'ctest-vn-60284680', 'tenant_id': '178bd3fbc6904d1ab89b857e07781f80', 'project_id': '178bd3fbc6904d1ab89b857e07781f80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02506064', 'ctest-vn-60284680'], 'port_security_enabled': True, 'description': ''}}
2025-06-01 18:00:21,406 - DEBUG - Response for create_subnet : {'subnet': {'id': '15387b73-5689-434d-a1c0-e4f7a71c5f89', 'name': '', 'tenant_id': '178bd3fbc6904d1ab89b857e07781f80', 'network_id': '312e4d57-5ea8-4709-9422-1ba44a801268', 'ip_version': 4, 'cidr': '205.36.58.64/26', 'allocation_pools': [{'start': '205.36.58.66', 'end': '205.36.58.126'}], 'gateway_ip': '205.36.58.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.36.58.66', 'tags': [], 'project_id': '178bd3fbc6904d1ab89b857e07781f80'}}
2025-06-01 18:00:21,423 - INFO - Created VN ctest-vn-60284680
2025-06-01 18:00:21,476 - DEBUG - VN ctest-vn-60284680 UUID is 312e4d57-5ea8-4709-9422-1ba44a801268
2025-06-01 18:00:21,589 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02506064:ctest-vn-12148588, 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-02506064:ctest-vn-60284680, 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-06-01 18:00:21,896 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8a1f80b-d7b8-4b7b-951a-c7e69c449110', 'name': 'ctest-vn-12148588', 'tenant_id': '178bd3fbc6904d1ab89b857e07781f80', 'project_id': '178bd3fbc6904d1ab89b857e07781f80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9846b4c7-3612-409d-9661-71a32e9410fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02506064', 'ctest-vn-12148588'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02506064', 'ctest-policy-allow-all-15343465']], 'subnet_ipam': [{'subnet_cidr': '104.88.206.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-01 18:00:22,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '312e4d57-5ea8-4709-9422-1ba44a801268', 'name': 'ctest-vn-60284680', 'tenant_id': '178bd3fbc6904d1ab89b857e07781f80', 'project_id': '178bd3fbc6904d1ab89b857e07781f80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['15387b73-5689-434d-a1c0-e4f7a71c5f89'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02506064', 'ctest-vn-60284680'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02506064', 'ctest-policy-allow-all-15343465']], 'subnet_ipam': [{'subnet_cidr': '205.36.58.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-01 18:00:22,292 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-01 18:00:22,639 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-01 18:00:22,667 - DEBUG - Requesting: http://10.0.0.254:8082/domain/599e2ccf-47f2-4ef8-ae58-9875888f00f2
2025-06-01 18:00:22,680 - DEBUG - Requesting: http://10.0.0.254:8082/project/178bd3fb-c690-4d1a-b89b-857e07781f80
2025-06-01 18:00:22,756 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f8a1f80b-d7b8-4b7b-951a-c7e69c449110
2025-06-01 18:00:22,769 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f8a1f80b-d7b8-4b7b-951a-c7e69c449110
2025-06-01 18:00:22,779 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6375756c-e292-4514-af9f-77e68e35a877
2025-06-01 18:00:22,787 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6375756c-e292-4514-af9f-77e68e35a877
2025-06-01 18:00:22,794 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5051b0d3-3d05-49d7-ad98-b824d95b3fbd
2025-06-01 18:00:22,801 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-01 18:00:22,801 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f8a1f80b-d7b8-4b7b-951a-c7e69c449110
2025-06-01 18:00:22,811 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6375756c-e292-4514-af9f-77e68e35a877
2025-06-01 18:00:22,824 - INFO - Verified VN network id 8 for VN f8a1f80b-d7b8-4b7b-951a-c7e69c449110
2025-06-01 18:00:22,824 - INFO - Verifications in API Server for VN ctest-vn-12148588 passed
2025-06-01 18:00:22,824 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f8a1f80b-d7b8-4b7b-951a-c7e69c449110
2025-06-01 18:00:22,834 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6375756c-e292-4514-af9f-77e68e35a877
2025-06-01 18:00:22,841 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6375756c-e292-4514-af9f-77e68e35a877
2025-06-01 18:00:22,852 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5051b0d3-3d05-49d7-ad98-b824d95b3fbd
2025-06-01 18:00:22,864 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02506064:ctest-vn-12148588', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02506064', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17915873522404051835', 'uuid-lslong': '10744119654323884304'}, 'enable': 'true', 'created': '2025-06-01T18:00:20', 'last-modified': '2025-06-01T18:00:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984117'}
2025-06-01 18:00:22,871 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-01 18:00:22,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12148588 passed
2025-06-01 18:00:22,871 - DEBUG - ====Verifying policy data for ctest-vn-12148588 in API_Server ======
2025-06-01 18:00:22,871 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-01 18:00:22,877 - DEBUG - Requesting: http://10.0.0.254:8082/domain/599e2ccf-47f2-4ef8-ae58-9875888f00f2
2025-06-01 18:00:22,891 - DEBUG - Requesting: http://10.0.0.254:8082/project/178bd3fb-c690-4d1a-b89b-857e07781f80
2025-06-01 18:00:22,993 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f8a1f80b-d7b8-4b7b-951a-c7e69c449110
2025-06-01 18:00:23,004 - DEBUG - ==>Verifying data for policy with id: 43c4c161-b8a5-47ad-9de8-5609ce445fdc, fqn: ['default-domain', 'ctest-TestBasicPolicy-02506064', 'ctest-policy-allow-all-15343465']
2025-06-01 18:00:23,004 - INFO - VN ctest-vn-12148588 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-01 18:00:23,004 - DEBUG - Verifying the vn in opserver
2025-06-01 18:00:23,004 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02506064:ctest-vn-12148588 virtual network link through opserver 10.0.0.254
2025-06-01 18:00:23,004 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-01 18:00:23,338 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-01 18:00:23,395 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02506064:ctest-vn-12148588', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02506064:ctest-vn-12148588?flat'}
2025-06-01 18:00:23,395 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02506064:ctest-vn-12148588 is found in opserver
2025-06-01 18:00:23,406 - DEBUG - Do not have enough data to verify VN in agent
2025-06-01 18:00:23,412 - DEBUG - VRF ids for VN ctest-vn-12148588: {}
2025-06-01 18:00:23,412 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-01 18:00:23,419 - DEBUG - Requesting: http://10.0.0.254:8082/domain/599e2ccf-47f2-4ef8-ae58-9875888f00f2
2025-06-01 18:00:23,431 - DEBUG - Requesting: http://10.0.0.254:8082/project/178bd3fb-c690-4d1a-b89b-857e07781f80
2025-06-01 18:00:23,505 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/312e4d57-5ea8-4709-9422-1ba44a801268
2025-06-01 18:00:23,517 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/312e4d57-5ea8-4709-9422-1ba44a801268
2025-06-01 18:00:23,527 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84344bf1-fd45-4bfd-bfc6-b2722efeb73f
2025-06-01 18:00:23,534 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84344bf1-fd45-4bfd-bfc6-b2722efeb73f
2025-06-01 18:00:23,541 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1b622994-ed97-4bd4-b2cb-9f4a3dfafb93
2025-06-01 18:00:23,548 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-01 18:00:23,548 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/312e4d57-5ea8-4709-9422-1ba44a801268
2025-06-01 18:00:23,557 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84344bf1-fd45-4bfd-bfc6-b2722efeb73f
2025-06-01 18:00:23,572 - INFO - Verified VN network id 9 for VN 312e4d57-5ea8-4709-9422-1ba44a801268
2025-06-01 18:00:23,572 - INFO - Verifications in API Server for VN ctest-vn-60284680 passed
2025-06-01 18:00:23,572 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/312e4d57-5ea8-4709-9422-1ba44a801268
2025-06-01 18:00:23,582 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84344bf1-fd45-4bfd-bfc6-b2722efeb73f
2025-06-01 18:00:23,590 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84344bf1-fd45-4bfd-bfc6-b2722efeb73f
2025-06-01 18:00:23,596 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1b622994-ed97-4bd4-b2cb-9f4a3dfafb93
2025-06-01 18:00:23,609 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02506064:ctest-vn-60284680', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02506064', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3543854994432739081', 'uuid-lslong': '10674124459259990632'}, 'enable': 'true', 'created': '2025-06-01T18:00:21', 'last-modified': '2025-06-01T18:00:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.495554'}
2025-06-01 18:00:23,616 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-01 18:00:23,616 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60284680 passed
2025-06-01 18:00:23,616 - DEBUG - ====Verifying policy data for ctest-vn-60284680 in API_Server ======
2025-06-01 18:00:23,616 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-01 18:00:23,622 - DEBUG - Requesting: http://10.0.0.254:8082/domain/599e2ccf-47f2-4ef8-ae58-9875888f00f2
2025-06-01 18:00:23,634 - DEBUG - Requesting: http://10.0.0.254:8082/project/178bd3fb-c690-4d1a-b89b-857e07781f80
2025-06-01 18:00:23,714 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/312e4d57-5ea8-4709-9422-1ba44a801268
2025-06-01 18:00:23,726 - DEBUG - ==>Verifying data for policy with id: 43c4c161-b8a5-47ad-9de8-5609ce445fdc, fqn: ['default-domain', 'ctest-TestBasicPolicy-02506064', 'ctest-policy-allow-all-15343465']
2025-06-01 18:00:23,726 - INFO - VN ctest-vn-60284680 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-01 18:00:23,726 - DEBUG - Verifying the vn in opserver
2025-06-01 18:00:23,726 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02506064:ctest-vn-60284680 virtual network link through opserver 10.0.0.254
2025-06-01 18:00:23,726 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-01 18:00:23,737 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02506064:ctest-vn-60284680', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02506064:ctest-vn-60284680?flat'}
2025-06-01 18:00:23,737 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02506064:ctest-vn-60284680 is found in opserver
2025-06-01 18:00:23,748 - DEBUG - Do not have enough data to verify VN in agent
2025-06-01 18:00:23,754 - DEBUG - VRF ids for VN ctest-vn-60284680: {}
2025-06-01 18:00:23,808 - DEBUG - Services list from nova: [