2025-04-09 13:02:23,874 - INFO - Domain Default found not creating
2025-04-09 13:02:24,237 - INFO - Project ctest-TestBasicPolicy-90810754 not found, creating it
2025-04-09 13:02:24,920 - INFO - Created Project:ctest-TestBasicPolicy-90810754, ID : bc7ee50a-d25c-44de-899e-2c6166d0121a
2025-04-09 13:02:26,897 - INFO - ================================================================================
2025-04-09 13:02:26,898 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 13:02:26,898 - 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-09 13:02:27,191 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-04-09 13:02:27,191 - INFO - Initial checks done. Running the testcase now
2025-04-09 13:02:27,191 - INFO -
2025-04-09 13:02:27,959 - DEBUG - Response for create_network : {'network': {'id': 'ff4188df-8e38-45ba-9eb8-60c542c71ad2', 'name': 'ctest-vn-65961615', 'tenant_id': 'bc7ee50ad25c44de899e2c6166d0121a', 'project_id': 'bc7ee50ad25c44de899e2c6166d0121a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90810754', 'ctest-vn-65961615'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 13:02:28,166 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f2c61738-3cce-4707-b1e0-6b7ea9bd2df1', 'name': '', 'tenant_id': 'bc7ee50ad25c44de899e2c6166d0121a', 'network_id': 'ff4188df-8e38-45ba-9eb8-60c542c71ad2', 'ip_version': 4, 'cidr': '80.212.229.128/26', 'allocation_pools': [{'start': '80.212.229.130', 'end': '80.212.229.190'}], 'gateway_ip': '80.212.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.212.229.130', 'tags': [], 'project_id': 'bc7ee50ad25c44de899e2c6166d0121a'}}
2025-04-09 13:02:28,190 - INFO - Created VN ctest-vn-65961615
2025-04-09 13:02:28,253 - DEBUG - VN ctest-vn-65961615 UUID is ff4188df-8e38-45ba-9eb8-60c542c71ad2
2025-04-09 13:02:28,768 - DEBUG - Response for create_network : {'network': {'id': '740f55e7-4dce-4483-889b-ef4aaec100bf', 'name': 'ctest-vn-41529649', 'tenant_id': 'bc7ee50ad25c44de899e2c6166d0121a', 'project_id': 'bc7ee50ad25c44de899e2c6166d0121a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90810754', 'ctest-vn-41529649'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 13:02:28,981 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfec606c-1383-4dd9-a21c-624c7d6b0351', 'name': '', 'tenant_id': 'bc7ee50ad25c44de899e2c6166d0121a', 'network_id': '740f55e7-4dce-4483-889b-ef4aaec100bf', 'ip_version': 4, 'cidr': '63.113.92.0/26', 'allocation_pools': [{'start': '63.113.92.2', 'end': '63.113.92.62'}], 'gateway_ip': '63.113.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.113.92.2', 'tags': [], 'project_id': 'bc7ee50ad25c44de899e2c6166d0121a'}}
2025-04-09 13:02:29,006 - INFO - Created VN ctest-vn-41529649
2025-04-09 13:02:29,062 - DEBUG - VN ctest-vn-41529649 UUID is 740f55e7-4dce-4483-889b-ef4aaec100bf
2025-04-09 13:02:29,171 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90810754:ctest-vn-65961615, 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-90810754:ctest-vn-41529649, 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-09 13:02:29,591 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff4188df-8e38-45ba-9eb8-60c542c71ad2', 'name': 'ctest-vn-65961615', 'tenant_id': 'bc7ee50ad25c44de899e2c6166d0121a', 'project_id': 'bc7ee50ad25c44de899e2c6166d0121a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f2c61738-3cce-4707-b1e0-6b7ea9bd2df1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90810754', 'ctest-vn-65961615'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90810754', 'ctest-policy-allow-all-97312035']], 'subnet_ipam': [{'subnet_cidr': '80.212.229.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 13:02:29,996 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '740f55e7-4dce-4483-889b-ef4aaec100bf', 'name': 'ctest-vn-41529649', 'tenant_id': 'bc7ee50ad25c44de899e2c6166d0121a', 'project_id': 'bc7ee50ad25c44de899e2c6166d0121a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfec606c-1383-4dd9-a21c-624c7d6b0351'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90810754', 'ctest-vn-41529649'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90810754', 'ctest-policy-allow-all-97312035']], 'subnet_ipam': [{'subnet_cidr': '63.113.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 13:02:30,165 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-09 13:02:30,473 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-09 13:02:30,564 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3561b6b8-9eec-416f-b6fc-ce80fe69a823
2025-04-09 13:02:30,607 - DEBUG - Requesting: http://10.0.0.38:8082/project/bc7ee50a-d25c-44de-899e-2c6166d0121a
2025-04-09 13:02:30,714 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff4188df-8e38-45ba-9eb8-60c542c71ad2
2025-04-09 13:02:30,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff4188df-8e38-45ba-9eb8-60c542c71ad2
2025-04-09 13:02:30,754 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3dcd94a2-4cfc-4807-8b58-74180feed129
2025-04-09 13:02:30,768 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3dcd94a2-4cfc-4807-8b58-74180feed129
2025-04-09 13:02:30,786 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b15bc819-c315-43a0-ab58-11952526d543
2025-04-09 13:02:30,804 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 13:02:30,804 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff4188df-8e38-45ba-9eb8-60c542c71ad2
2025-04-09 13:02:30,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3dcd94a2-4cfc-4807-8b58-74180feed129
2025-04-09 13:02:30,856 - INFO - Verified VN network id 8 for VN ff4188df-8e38-45ba-9eb8-60c542c71ad2
2025-04-09 13:02:30,857 - INFO - Verifications in API Server for VN ctest-vn-65961615 passed
2025-04-09 13:02:30,857 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff4188df-8e38-45ba-9eb8-60c542c71ad2
2025-04-09 13:02:30,880 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3dcd94a2-4cfc-4807-8b58-74180feed129
2025-04-09 13:02:30,899 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3dcd94a2-4cfc-4807-8b58-74180feed129
2025-04-09 13:02:30,909 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b15bc819-c315-43a0-ab58-11952526d543
2025-04-09 13:02:30,932 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90810754:ctest-vn-65961615', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90810754', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18393132846902953402', 'uuid-lslong': '11436997654052543186'}, 'enable': 'true', 'created': '2025-04-09T13:02:27', 'last-modified': '2025-04-09T13:02:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.378252'}
2025-04-09 13:02:30,948 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 13:02:30,949 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65961615 passed
2025-04-09 13:02:30,949 - DEBUG - ====Verifying policy data for ctest-vn-65961615 in API_Server ======
2025-04-09 13:02:30,949 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-09 13:02:30,959 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3561b6b8-9eec-416f-b6fc-ce80fe69a823
2025-04-09 13:02:30,979 - DEBUG - Requesting: http://10.0.0.38:8082/project/bc7ee50a-d25c-44de-899e-2c6166d0121a
2025-04-09 13:02:31,078 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff4188df-8e38-45ba-9eb8-60c542c71ad2
2025-04-09 13:02:31,095 - DEBUG - ==>Verifying data for policy with id: 1f14444e-51e7-4aea-a8ce-43636f2c9d75, fqn: ['default-domain', 'ctest-TestBasicPolicy-90810754', 'ctest-policy-allow-all-97312035']
2025-04-09 13:02:31,095 - INFO - VN ctest-vn-65961615 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 13:02:31,095 - DEBUG - Verifying the vn in opserver
2025-04-09 13:02:31,095 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90810754:ctest-vn-65961615 virtual network link through opserver 10.0.0.38
2025-04-09 13:02:31,095 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-09 13:02:31,432 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-09 13:02:31,565 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90810754:ctest-vn-65961615', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90810754:ctest-vn-65961615?flat'}
2025-04-09 13:02:31,565 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90810754:ctest-vn-65961615 is found in opserver
2025-04-09 13:02:31,601 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 13:02:31,614 - DEBUG - VRF ids for VN ctest-vn-65961615: {}
2025-04-09 13:02:31,614 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-09 13:02:31,627 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3561b6b8-9eec-416f-b6fc-ce80fe69a823
2025-04-09 13:02:31,664 - DEBUG - Requesting: http://10.0.0.38:8082/project/bc7ee50a-d25c-44de-899e-2c6166d0121a
2025-04-09 13:02:31,795 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/740f55e7-4dce-4483-889b-ef4aaec100bf
2025-04-09 13:02:31,827 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/740f55e7-4dce-4483-889b-ef4aaec100bf
2025-04-09 13:02:31,858 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a013f71e-e61b-4971-9616-432dfb6b24c6
2025-04-09 13:02:31,877 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a013f71e-e61b-4971-9616-432dfb6b24c6
2025-04-09 13:02:31,895 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9565be78-d35f-441e-ba32-efdce4679040
2025-04-09 13:02:31,910 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 13:02:31,910 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/740f55e7-4dce-4483-889b-ef4aaec100bf
2025-04-09 13:02:31,933 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a013f71e-e61b-4971-9616-432dfb6b24c6
2025-04-09 13:02:31,965 - INFO - Verified VN network id 9 for VN 740f55e7-4dce-4483-889b-ef4aaec100bf
2025-04-09 13:02:31,965 - INFO - Verifications in API Server for VN ctest-vn-41529649 passed
2025-04-09 13:02:31,965 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/740f55e7-4dce-4483-889b-ef4aaec100bf
2025-04-09 13:02:31,985 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a013f71e-e61b-4971-9616-432dfb6b24c6
2025-04-09 13:02:32,002 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a013f71e-e61b-4971-9616-432dfb6b24c6
2025-04-09 13:02:32,023 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9565be78-d35f-441e-ba32-efdce4679040
2025-04-09 13:02:32,053 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90810754:ctest-vn-41529649', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90810754', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8362997484981470339', 'uuid-lslong': '9843724514586853567'}, 'enable': 'true', 'created': '2025-04-09T13:02:28', 'last-modified': '2025-04-09T13:02:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.152502'}
2025-04-09 13:02:32,064 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 13:02:32,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41529649 passed
2025-04-09 13:02:32,065 - DEBUG - ====Verifying policy data for ctest-vn-41529649 in API_Server ======
2025-04-09 13:02:32,065 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-09 13:02:32,123 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3561b6b8-9eec-416f-b6fc-ce80fe69a823
2025-04-09 13:02:32,221 - DEBUG - Requesting: http://10.0.0.38:8082/project/bc7ee50a-d25c-44de-899e-2c6166d0121a
2025-04-09 13:02:32,323 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/740f55e7-4dce-4483-889b-ef4aaec100bf
2025-04-09 13:02:32,336 - DEBUG - ==>Verifying data for policy with id: 1f14444e-51e7-4aea-a8ce-43636f2c9d75, fqn: ['default-domain', 'ctest-TestBasicPolicy-90810754', 'ctest-policy-allow-all-97312035']
2025-04-09 13:02:32,336 - INFO - VN ctest-vn-41529649 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 13:02:32,336 - DEBUG - Verifying the vn in opserver
2025-04-09 13:02:32,336 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90810754:ctest-vn-41529649 virtual network link through opserver 10.0.0.38
2025-04-09 13:02:32,336 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-09 13:02:32,351 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90810754:ctest-vn-41529649', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90810754:ctest-vn-41529649?flat'}
2025-04-09 13:02:32,351 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90810754:ctest-vn-41529649 is found in opserver
2025-04-09 13:02:32,386 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 13:02:32,397 - DEBUG - VRF ids for VN ctest-vn-41529649: {}
2025-04-09 13:02:32,482 - DEBUG - Services list from nova: [