2025-08-21 02:09:43,163 - INFO - Domain Default found not creating
2025-08-21 02:09:43,288 - INFO - Project ctest-TestBasicPolicy-29747050 not found, creating it
2025-08-21 02:09:43,769 - INFO - Created Project:ctest-TestBasicPolicy-29747050, ID : cb0c5a5d-b852-4cee-98d6-a382d101caf8
2025-08-21 02:09:45,101 - INFO - ================================================================================
2025-08-21 02:09:45,101 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-21 02:09:45,101 - 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-08-21 02:09:45,362 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.192': '0'}} with
2025-08-21 02:09:45,362 - INFO - Initial checks done. Running the testcase now
2025-08-21 02:09:45,362 - INFO -
2025-08-21 02:09:45,883 - DEBUG - Response for create_network : {'network': {'id': '405fc9a9-3b5e-47b4-97c0-d1dcb903afd9', 'name': 'ctest-vn-49591848', 'tenant_id': 'cb0c5a5db8524cee98d6a382d101caf8', 'project_id': 'cb0c5a5db8524cee98d6a382d101caf8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29747050', 'ctest-vn-49591848'], 'port_security_enabled': True, 'description': ''}}
2025-08-21 02:09:46,029 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f54ccef4-2355-416e-8e42-f036f929b17b', 'name': '', 'tenant_id': 'cb0c5a5db8524cee98d6a382d101caf8', 'network_id': '405fc9a9-3b5e-47b4-97c0-d1dcb903afd9', 'ip_version': 4, 'cidr': '142.123.85.0/26', 'allocation_pools': [{'start': '142.123.85.2', 'end': '142.123.85.62'}], 'gateway_ip': '142.123.85.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.123.85.2', 'tags': [], 'project_id': 'cb0c5a5db8524cee98d6a382d101caf8'}}
2025-08-21 02:09:46,047 - INFO - Created VN ctest-vn-49591848
2025-08-21 02:09:46,100 - DEBUG - VN ctest-vn-49591848 UUID is 405fc9a9-3b5e-47b4-97c0-d1dcb903afd9
2025-08-21 02:09:46,422 - DEBUG - Response for create_network : {'network': {'id': '57fa8f36-2d17-4768-812c-83320dd7d552', 'name': 'ctest-vn-68607308', 'tenant_id': 'cb0c5a5db8524cee98d6a382d101caf8', 'project_id': 'cb0c5a5db8524cee98d6a382d101caf8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29747050', 'ctest-vn-68607308'], 'port_security_enabled': True, 'description': ''}}
2025-08-21 02:09:46,626 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c6f0ef1-1382-4edb-94d0-72375e12b6f5', 'name': '', 'tenant_id': 'cb0c5a5db8524cee98d6a382d101caf8', 'network_id': '57fa8f36-2d17-4768-812c-83320dd7d552', 'ip_version': 4, 'cidr': '221.57.118.128/26', 'allocation_pools': [{'start': '221.57.118.130', 'end': '221.57.118.190'}], 'gateway_ip': '221.57.118.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.57.118.130', 'tags': [], 'project_id': 'cb0c5a5db8524cee98d6a382d101caf8'}}
2025-08-21 02:09:46,647 - INFO - Created VN ctest-vn-68607308
2025-08-21 02:09:46,700 - DEBUG - VN ctest-vn-68607308 UUID is 57fa8f36-2d17-4768-812c-83320dd7d552
2025-08-21 02:09:46,818 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29747050:ctest-vn-49591848, 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-29747050:ctest-vn-68607308, 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-08-21 02:09:47,131 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '405fc9a9-3b5e-47b4-97c0-d1dcb903afd9', 'name': 'ctest-vn-49591848', 'tenant_id': 'cb0c5a5db8524cee98d6a382d101caf8', 'project_id': 'cb0c5a5db8524cee98d6a382d101caf8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f54ccef4-2355-416e-8e42-f036f929b17b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29747050', 'ctest-vn-49591848'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29747050', 'ctest-policy-allow-all-70114907']], 'subnet_ipam': [{'subnet_cidr': '142.123.85.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-21 02:09:47,375 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57fa8f36-2d17-4768-812c-83320dd7d552', 'name': 'ctest-vn-68607308', 'tenant_id': 'cb0c5a5db8524cee98d6a382d101caf8', 'project_id': 'cb0c5a5db8524cee98d6a382d101caf8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5c6f0ef1-1382-4edb-94d0-72375e12b6f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29747050', 'ctest-vn-68607308'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29747050', 'ctest-policy-allow-all-70114907']], 'subnet_ipam': [{'subnet_cidr': '221.57.118.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-21 02:09:47,544 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-08-21 02:09:47,842 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-08-21 02:09:47,876 - DEBUG - Requesting: http://10.0.0.23:8082/domain/dfdbf3f6-0573-4082-8004-8e4c872ea99b
2025-08-21 02:09:47,888 - DEBUG - Requesting: http://10.0.0.23:8082/project/cb0c5a5d-b852-4cee-98d6-a382d101caf8
2025-08-21 02:09:47,959 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/405fc9a9-3b5e-47b4-97c0-d1dcb903afd9
2025-08-21 02:09:47,974 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/405fc9a9-3b5e-47b4-97c0-d1dcb903afd9
2025-08-21 02:09:47,984 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7a1558ad-9a98-448c-ae85-7c518cbe991f
2025-08-21 02:09:47,992 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7a1558ad-9a98-448c-ae85-7c518cbe991f
2025-08-21 02:09:48,000 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d185dca0-0ae4-48cf-b75f-06dc26d0f1bb
2025-08-21 02:09:48,007 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-21 02:09:48,007 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/405fc9a9-3b5e-47b4-97c0-d1dcb903afd9
2025-08-21 02:09:48,019 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7a1558ad-9a98-448c-ae85-7c518cbe991f
2025-08-21 02:09:48,033 - INFO - Verified VN network id 12 for VN 405fc9a9-3b5e-47b4-97c0-d1dcb903afd9
2025-08-21 02:09:48,033 - INFO - Verifications in API Server for VN ctest-vn-49591848 passed
2025-08-21 02:09:48,033 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/405fc9a9-3b5e-47b4-97c0-d1dcb903afd9
2025-08-21 02:09:48,045 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7a1558ad-9a98-448c-ae85-7c518cbe991f
2025-08-21 02:09:48,057 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7a1558ad-9a98-448c-ae85-7c518cbe991f
2025-08-21 02:09:48,065 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d185dca0-0ae4-48cf-b75f-06dc26d0f1bb
2025-08-21 02:09:48,076 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29747050:ctest-vn-49591848', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29747050', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4638647869897590708', 'uuid-lslong': '10934970641182601177'}, 'enable': 'true', 'created': '2025-08-21T02:09:45', 'last-modified': '2025-08-21T02:09:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986061'}
2025-08-21 02:09:48,082 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-21 02:09:48,082 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49591848 passed
2025-08-21 02:09:48,082 - DEBUG - ====Verifying policy data for ctest-vn-49591848 in API_Server ======
2025-08-21 02:09:48,082 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-08-21 02:09:48,087 - DEBUG - Requesting: http://10.0.0.23:8082/domain/dfdbf3f6-0573-4082-8004-8e4c872ea99b
2025-08-21 02:09:48,096 - DEBUG - Requesting: http://10.0.0.23:8082/project/cb0c5a5d-b852-4cee-98d6-a382d101caf8
2025-08-21 02:09:48,172 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/405fc9a9-3b5e-47b4-97c0-d1dcb903afd9
2025-08-21 02:09:48,182 - DEBUG - ==>Verifying data for policy with id: 0875b445-2778-4c0c-ae6b-539d45bb4206, fqn: ['default-domain', 'ctest-TestBasicPolicy-29747050', 'ctest-policy-allow-all-70114907']
2025-08-21 02:09:48,182 - INFO - VN ctest-vn-49591848 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-21 02:09:48,182 - DEBUG - Verifying the vn in opserver
2025-08-21 02:09:48,182 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29747050:ctest-vn-49591848 virtual network link through opserver 10.0.0.23
2025-08-21 02:09:48,182 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-08-21 02:09:48,473 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-08-21 02:09:48,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29747050:ctest-vn-49591848', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29747050:ctest-vn-49591848?flat'}
2025-08-21 02:09:48,527 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29747050:ctest-vn-49591848 is found in opserver
2025-08-21 02:09:48,537 - DEBUG - Do not have enough data to verify VN in agent
2025-08-21 02:09:48,542 - DEBUG - VRF ids for VN ctest-vn-49591848: {}
2025-08-21 02:09:48,542 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-08-21 02:09:48,547 - DEBUG - Requesting: http://10.0.0.23:8082/domain/dfdbf3f6-0573-4082-8004-8e4c872ea99b
2025-08-21 02:09:48,557 - DEBUG - Requesting: http://10.0.0.23:8082/project/cb0c5a5d-b852-4cee-98d6-a382d101caf8
2025-08-21 02:09:48,627 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/57fa8f36-2d17-4768-812c-83320dd7d552
2025-08-21 02:09:48,639 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/57fa8f36-2d17-4768-812c-83320dd7d552
2025-08-21 02:09:48,653 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/12f6c14c-1194-4d96-8f73-f86814461057
2025-08-21 02:09:48,662 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/12f6c14c-1194-4d96-8f73-f86814461057
2025-08-21 02:09:48,668 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/1d7afd79-a2f2-43df-a357-333e64a3bb52
2025-08-21 02:09:48,675 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-21 02:09:48,675 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/57fa8f36-2d17-4768-812c-83320dd7d552
2025-08-21 02:09:48,683 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/12f6c14c-1194-4d96-8f73-f86814461057
2025-08-21 02:09:48,696 - INFO - Verified VN network id 13 for VN 57fa8f36-2d17-4768-812c-83320dd7d552
2025-08-21 02:09:48,696 - INFO - Verifications in API Server for VN ctest-vn-68607308 passed
2025-08-21 02:09:48,696 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/57fa8f36-2d17-4768-812c-83320dd7d552
2025-08-21 02:09:48,706 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/12f6c14c-1194-4d96-8f73-f86814461057
2025-08-21 02:09:48,715 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/12f6c14c-1194-4d96-8f73-f86814461057
2025-08-21 02:09:48,721 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/1d7afd79-a2f2-43df-a357-333e64a3bb52
2025-08-21 02:09:48,734 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29747050:ctest-vn-68607308', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29747050', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6339536888324900712', 'uuid-lslong': '9307958780871824722'}, 'enable': 'true', 'created': '2025-08-21T02:09:46', 'last-modified': '2025-08-21T02:09:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384151'}
2025-08-21 02:09:48,740 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-21 02:09:48,740 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68607308 passed
2025-08-21 02:09:48,740 - DEBUG - ====Verifying policy data for ctest-vn-68607308 in API_Server ======
2025-08-21 02:09:48,740 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-08-21 02:09:48,745 - DEBUG - Requesting: http://10.0.0.23:8082/domain/dfdbf3f6-0573-4082-8004-8e4c872ea99b
2025-08-21 02:09:48,755 - DEBUG - Requesting: http://10.0.0.23:8082/project/cb0c5a5d-b852-4cee-98d6-a382d101caf8
2025-08-21 02:09:48,829 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/57fa8f36-2d17-4768-812c-83320dd7d552
2025-08-21 02:09:48,838 - DEBUG - ==>Verifying data for policy with id: 0875b445-2778-4c0c-ae6b-539d45bb4206, fqn: ['default-domain', 'ctest-TestBasicPolicy-29747050', 'ctest-policy-allow-all-70114907']
2025-08-21 02:09:48,838 - INFO - VN ctest-vn-68607308 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-21 02:09:48,838 - DEBUG - Verifying the vn in opserver
2025-08-21 02:09:48,838 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29747050:ctest-vn-68607308 virtual network link through opserver 10.0.0.23
2025-08-21 02:09:48,838 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-08-21 02:09:48,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29747050:ctest-vn-68607308', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29747050:ctest-vn-68607308?flat'}
2025-08-21 02:09:48,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29747050:ctest-vn-68607308 is found in opserver
2025-08-21 02:09:48,857 - DEBUG - Do not have enough data to verify VN in agent
2025-08-21 02:09:48,861 - DEBUG - VRF ids for VN ctest-vn-68607308: {}
2025-08-21 02:09:48,912 - DEBUG - Services list from nova: [