2025-08-05 07:17:46,913 - INFO - Domain Default found not creating
2025-08-05 07:17:47,058 - INFO - Project ctest-TestBasicPolicy-68186682 not found, creating it
2025-08-05 07:17:47,502 - INFO - Created Project:ctest-TestBasicPolicy-68186682, ID : c98c844c-6d34-44c5-ac87-273bc0491351
2025-08-05 07:17:48,980 - INFO - ================================================================================
2025-08-05 07:17:48,980 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-05 07:17:48,980 - 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-05 07:17:49,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.25': '0'}} with
2025-08-05 07:17:49,236 - INFO - Initial checks done. Running the testcase now
2025-08-05 07:17:49,236 - INFO -
2025-08-05 07:17:49,795 - DEBUG - Response for create_network : {'network': {'id': 'b4192c84-0a16-4788-8e32-8b490a38aa0a', 'name': 'ctest-vn-76119244', 'tenant_id': 'c98c844c6d3444c5ac87273bc0491351', 'project_id': 'c98c844c6d3444c5ac87273bc0491351', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68186682', 'ctest-vn-76119244'], 'port_security_enabled': True, 'description': ''}}
2025-08-05 07:17:49,962 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff0fe141-159b-4a2f-abdc-9406b78308d8', 'name': '', 'tenant_id': 'c98c844c6d3444c5ac87273bc0491351', 'network_id': 'b4192c84-0a16-4788-8e32-8b490a38aa0a', 'ip_version': 4, 'cidr': '67.125.103.128/26', 'allocation_pools': [{'start': '67.125.103.130', 'end': '67.125.103.190'}], 'gateway_ip': '67.125.103.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.125.103.130', 'tags': [], 'project_id': 'c98c844c6d3444c5ac87273bc0491351'}}
2025-08-05 07:17:49,983 - INFO - Created VN ctest-vn-76119244
2025-08-05 07:17:50,037 - DEBUG - VN ctest-vn-76119244 UUID is b4192c84-0a16-4788-8e32-8b490a38aa0a
2025-08-05 07:17:50,351 - DEBUG - Response for create_network : {'network': {'id': '69e6e256-eab9-48b5-bd74-9efffdce1362', 'name': 'ctest-vn-67139745', 'tenant_id': 'c98c844c6d3444c5ac87273bc0491351', 'project_id': 'c98c844c6d3444c5ac87273bc0491351', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68186682', 'ctest-vn-67139745'], 'port_security_enabled': True, 'description': ''}}
2025-08-05 07:17:50,515 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af1b74b4-4451-441c-b034-b50c1801db46', 'name': '', 'tenant_id': 'c98c844c6d3444c5ac87273bc0491351', 'network_id': '69e6e256-eab9-48b5-bd74-9efffdce1362', 'ip_version': 4, 'cidr': '66.94.237.0/26', 'allocation_pools': [{'start': '66.94.237.2', 'end': '66.94.237.62'}], 'gateway_ip': '66.94.237.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.94.237.2', 'tags': [], 'project_id': 'c98c844c6d3444c5ac87273bc0491351'}}
2025-08-05 07:17:50,533 - INFO - Created VN ctest-vn-67139745
2025-08-05 07:17:50,585 - DEBUG - VN ctest-vn-67139745 UUID is 69e6e256-eab9-48b5-bd74-9efffdce1362
2025-08-05 07:17:50,696 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68186682:ctest-vn-76119244, 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-68186682:ctest-vn-67139745, 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-05 07:17:51,007 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4192c84-0a16-4788-8e32-8b490a38aa0a', 'name': 'ctest-vn-76119244', 'tenant_id': 'c98c844c6d3444c5ac87273bc0491351', 'project_id': 'c98c844c6d3444c5ac87273bc0491351', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff0fe141-159b-4a2f-abdc-9406b78308d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68186682', 'ctest-vn-76119244'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68186682', 'ctest-policy-allow-all-95823298']], 'subnet_ipam': [{'subnet_cidr': '67.125.103.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-05 07:17:51,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69e6e256-eab9-48b5-bd74-9efffdce1362', 'name': 'ctest-vn-67139745', 'tenant_id': 'c98c844c6d3444c5ac87273bc0491351', 'project_id': 'c98c844c6d3444c5ac87273bc0491351', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af1b74b4-4451-441c-b034-b50c1801db46'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68186682', 'ctest-vn-67139745'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68186682', 'ctest-policy-allow-all-95823298']], 'subnet_ipam': [{'subnet_cidr': '66.94.237.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-05 07:17:51,409 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-05 07:17:51,703 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-05 07:17:51,732 - DEBUG - Requesting: http://10.0.0.49:8082/domain/254e05bd-08ec-4968-824f-1cd9244d9bd1
2025-08-05 07:17:51,746 - DEBUG - Requesting: http://10.0.0.49:8082/project/c98c844c-6d34-44c5-ac87-273bc0491351
2025-08-05 07:17:51,819 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b4192c84-0a16-4788-8e32-8b490a38aa0a
2025-08-05 07:17:51,833 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b4192c84-0a16-4788-8e32-8b490a38aa0a
2025-08-05 07:17:51,846 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/eb4701c9-6d0c-4f29-b913-8361f5576794
2025-08-05 07:17:51,854 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/eb4701c9-6d0c-4f29-b913-8361f5576794
2025-08-05 07:17:51,863 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c088eb38-a819-4f84-a98e-e58c1337d172
2025-08-05 07:17:51,870 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-05 07:17:51,870 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b4192c84-0a16-4788-8e32-8b490a38aa0a
2025-08-05 07:17:51,879 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/eb4701c9-6d0c-4f29-b913-8361f5576794
2025-08-05 07:17:51,893 - INFO - Verified VN network id 12 for VN b4192c84-0a16-4788-8e32-8b490a38aa0a
2025-08-05 07:17:51,893 - INFO - Verifications in API Server for VN ctest-vn-76119244 passed
2025-08-05 07:17:51,893 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b4192c84-0a16-4788-8e32-8b490a38aa0a
2025-08-05 07:17:51,903 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/eb4701c9-6d0c-4f29-b913-8361f5576794
2025-08-05 07:17:51,911 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/eb4701c9-6d0c-4f29-b913-8361f5576794
2025-08-05 07:17:51,919 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c088eb38-a819-4f84-a98e-e58c1337d172
2025-08-05 07:17:51,932 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68186682:ctest-vn-76119244', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68186682', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12977452746861332360', 'uuid-lslong': '10246405248041658890'}, 'enable': 'true', 'created': '2025-08-05T07:17:49', 'last-modified': '2025-08-05T07:17:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953775'}
2025-08-05 07:17:51,939 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-05 07:17:51,939 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76119244 passed
2025-08-05 07:17:51,939 - DEBUG - ====Verifying policy data for ctest-vn-76119244 in API_Server ======
2025-08-05 07:17:51,939 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-05 07:17:51,945 - DEBUG - Requesting: http://10.0.0.49:8082/domain/254e05bd-08ec-4968-824f-1cd9244d9bd1
2025-08-05 07:17:51,958 - DEBUG - Requesting: http://10.0.0.49:8082/project/c98c844c-6d34-44c5-ac87-273bc0491351
2025-08-05 07:17:52,025 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b4192c84-0a16-4788-8e32-8b490a38aa0a
2025-08-05 07:17:52,035 - DEBUG - ==>Verifying data for policy with id: cb8732ab-320f-4692-b4d1-da6027904484, fqn: ['default-domain', 'ctest-TestBasicPolicy-68186682', 'ctest-policy-allow-all-95823298']
2025-08-05 07:17:52,035 - INFO - VN ctest-vn-76119244 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-05 07:17:52,035 - DEBUG - Verifying the vn in opserver
2025-08-05 07:17:52,036 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68186682:ctest-vn-76119244 virtual network link through opserver 10.0.0.49
2025-08-05 07:17:52,036 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-05 07:17:52,326 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-05 07:17:52,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68186682:ctest-vn-76119244', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68186682:ctest-vn-76119244?flat'}
2025-08-05 07:17:52,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68186682:ctest-vn-76119244 is found in opserver
2025-08-05 07:17:52,397 - DEBUG - Do not have enough data to verify VN in agent
2025-08-05 07:17:52,403 - DEBUG - VRF ids for VN ctest-vn-76119244: {}
2025-08-05 07:17:52,403 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-05 07:17:52,411 - DEBUG - Requesting: http://10.0.0.49:8082/domain/254e05bd-08ec-4968-824f-1cd9244d9bd1
2025-08-05 07:17:52,426 - DEBUG - Requesting: http://10.0.0.49:8082/project/c98c844c-6d34-44c5-ac87-273bc0491351
2025-08-05 07:17:52,496 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/69e6e256-eab9-48b5-bd74-9efffdce1362
2025-08-05 07:17:52,510 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/69e6e256-eab9-48b5-bd74-9efffdce1362
2025-08-05 07:17:52,521 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/ea0349f2-f8b3-441c-b723-57fe8a15a870
2025-08-05 07:17:52,529 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/ea0349f2-f8b3-441c-b723-57fe8a15a870
2025-08-05 07:17:52,537 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/0de08157-9f90-419b-b4c5-aade2b454b79
2025-08-05 07:17:52,545 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-05 07:17:52,545 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/69e6e256-eab9-48b5-bd74-9efffdce1362
2025-08-05 07:17:52,555 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/ea0349f2-f8b3-441c-b723-57fe8a15a870
2025-08-05 07:17:52,570 - INFO - Verified VN network id 13 for VN 69e6e256-eab9-48b5-bd74-9efffdce1362
2025-08-05 07:17:52,570 - INFO - Verifications in API Server for VN ctest-vn-67139745 passed
2025-08-05 07:17:52,570 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/69e6e256-eab9-48b5-bd74-9efffdce1362
2025-08-05 07:17:52,582 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/ea0349f2-f8b3-441c-b723-57fe8a15a870
2025-08-05 07:17:52,589 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/ea0349f2-f8b3-441c-b723-57fe8a15a870
2025-08-05 07:17:52,596 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/0de08157-9f90-419b-b4c5-aade2b454b79
2025-08-05 07:17:52,610 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68186682:ctest-vn-67139745', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68186682', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7631035481558960309', 'uuid-lslong': '13651711192778806114'}, 'enable': 'true', 'created': '2025-08-05T07:17:50', 'last-modified': '2025-08-05T07:17:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.387474'}
2025-08-05 07:17:52,617 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-05 07:17:52,617 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67139745 passed
2025-08-05 07:17:52,618 - DEBUG - ====Verifying policy data for ctest-vn-67139745 in API_Server ======
2025-08-05 07:17:52,618 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-05 07:17:52,625 - DEBUG - Requesting: http://10.0.0.49:8082/domain/254e05bd-08ec-4968-824f-1cd9244d9bd1
2025-08-05 07:17:52,640 - DEBUG - Requesting: http://10.0.0.49:8082/project/c98c844c-6d34-44c5-ac87-273bc0491351
2025-08-05 07:17:52,717 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/69e6e256-eab9-48b5-bd74-9efffdce1362
2025-08-05 07:17:52,728 - DEBUG - ==>Verifying data for policy with id: cb8732ab-320f-4692-b4d1-da6027904484, fqn: ['default-domain', 'ctest-TestBasicPolicy-68186682', 'ctest-policy-allow-all-95823298']
2025-08-05 07:17:52,728 - INFO - VN ctest-vn-67139745 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-05 07:17:52,728 - DEBUG - Verifying the vn in opserver
2025-08-05 07:17:52,728 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68186682:ctest-vn-67139745 virtual network link through opserver 10.0.0.49
2025-08-05 07:17:52,728 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-05 07:17:52,739 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68186682:ctest-vn-67139745', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68186682:ctest-vn-67139745?flat'}
2025-08-05 07:17:52,739 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68186682:ctest-vn-67139745 is found in opserver
2025-08-05 07:17:52,749 - DEBUG - Do not have enough data to verify VN in agent
2025-08-05 07:17:52,754 - DEBUG - VRF ids for VN ctest-vn-67139745: {}
2025-08-05 07:17:52,807 - DEBUG - Services list from nova: [