2025-08-04 20:28:45,159 - INFO - Domain Default found not creating
2025-08-04 20:28:45,345 - INFO - Project ctest-TestBasicPolicy-94943918 not found, creating it
2025-08-04 20:28:45,913 - INFO - Created Project:ctest-TestBasicPolicy-94943918, ID : 8937f9f0-041e-42e3-865c-7695ca3579c8
2025-08-04 20:28:47,691 - INFO - ================================================================================
2025-08-04 20:28:47,691 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-04 20:28:47,691 - 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-04 20:28:47,957 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.14': '0'}} with
2025-08-04 20:28:47,957 - INFO - Initial checks done. Running the testcase now
2025-08-04 20:28:47,957 - INFO -
2025-08-04 20:28:48,608 - DEBUG - Response for create_network : {'network': {'id': '9705b581-3f5c-40be-a779-1b6e4db19823', 'name': 'ctest-vn-64893937', 'tenant_id': '8937f9f0041e42e3865c7695ca3579c8', 'project_id': '8937f9f0041e42e3865c7695ca3579c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94943918', 'ctest-vn-64893937'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 20:28:48,852 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b9b50ff-8457-47ab-87e1-c727739b16b7', 'name': '', 'tenant_id': '8937f9f0041e42e3865c7695ca3579c8', 'network_id': '9705b581-3f5c-40be-a779-1b6e4db19823', 'ip_version': 4, 'cidr': '187.169.180.64/26', 'allocation_pools': [{'start': '187.169.180.66', 'end': '187.169.180.126'}], 'gateway_ip': '187.169.180.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.169.180.66', 'tags': [], 'project_id': '8937f9f0041e42e3865c7695ca3579c8'}}
2025-08-04 20:28:48,874 - INFO - Created VN ctest-vn-64893937
2025-08-04 20:28:48,930 - DEBUG - VN ctest-vn-64893937 UUID is 9705b581-3f5c-40be-a779-1b6e4db19823
2025-08-04 20:28:49,261 - DEBUG - Response for create_network : {'network': {'id': '97b3ea89-e76d-4bd2-9205-659104b94f79', 'name': 'ctest-vn-51810358', 'tenant_id': '8937f9f0041e42e3865c7695ca3579c8', 'project_id': '8937f9f0041e42e3865c7695ca3579c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94943918', 'ctest-vn-51810358'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 20:28:49,426 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e2b1ba5-256a-4948-8801-1cd031bf4d72', 'name': '', 'tenant_id': '8937f9f0041e42e3865c7695ca3579c8', 'network_id': '97b3ea89-e76d-4bd2-9205-659104b94f79', 'ip_version': 4, 'cidr': '173.120.4.64/26', 'allocation_pools': [{'start': '173.120.4.66', 'end': '173.120.4.126'}], 'gateway_ip': '173.120.4.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.120.4.66', 'tags': [], 'project_id': '8937f9f0041e42e3865c7695ca3579c8'}}
2025-08-04 20:28:49,448 - INFO - Created VN ctest-vn-51810358
2025-08-04 20:28:49,501 - DEBUG - VN ctest-vn-51810358 UUID is 97b3ea89-e76d-4bd2-9205-659104b94f79
2025-08-04 20:28:49,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94943918:ctest-vn-64893937, 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-94943918:ctest-vn-51810358, 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-04 20:28:49,948 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9705b581-3f5c-40be-a779-1b6e4db19823', 'name': 'ctest-vn-64893937', 'tenant_id': '8937f9f0041e42e3865c7695ca3579c8', 'project_id': '8937f9f0041e42e3865c7695ca3579c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b9b50ff-8457-47ab-87e1-c727739b16b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94943918', 'ctest-vn-64893937'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94943918', 'ctest-policy-allow-all-09065237']], 'subnet_ipam': [{'subnet_cidr': '187.169.180.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-04 20:28:50,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97b3ea89-e76d-4bd2-9205-659104b94f79', 'name': 'ctest-vn-51810358', 'tenant_id': '8937f9f0041e42e3865c7695ca3579c8', 'project_id': '8937f9f0041e42e3865c7695ca3579c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e2b1ba5-256a-4948-8801-1cd031bf4d72'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94943918', 'ctest-vn-51810358'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94943918', 'ctest-policy-allow-all-09065237']], 'subnet_ipam': [{'subnet_cidr': '173.120.4.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-04 20:28:50,365 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-04 20:28:50,704 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-04 20:28:50,748 - DEBUG - Requesting: http://10.0.0.48:8082/domain/73e228f5-a7a2-4f40-8159-2a93bcb8ee57
2025-08-04 20:28:50,765 - DEBUG - Requesting: http://10.0.0.48:8082/project/8937f9f0-041e-42e3-865c-7695ca3579c8
2025-08-04 20:28:50,860 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9705b581-3f5c-40be-a779-1b6e4db19823
2025-08-04 20:28:50,873 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9705b581-3f5c-40be-a779-1b6e4db19823
2025-08-04 20:28:50,887 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0ce6d1b-0220-4717-81b2-ca0eba3acf56
2025-08-04 20:28:50,897 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0ce6d1b-0220-4717-81b2-ca0eba3acf56
2025-08-04 20:28:50,907 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/fc2ec2e2-3819-4a0b-bce6-4cee452cc87f
2025-08-04 20:28:50,917 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-04 20:28:50,917 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9705b581-3f5c-40be-a779-1b6e4db19823
2025-08-04 20:28:50,930 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0ce6d1b-0220-4717-81b2-ca0eba3acf56
2025-08-04 20:28:50,953 - INFO - Verified VN network id 11 for VN 9705b581-3f5c-40be-a779-1b6e4db19823
2025-08-04 20:28:50,954 - INFO - Verifications in API Server for VN ctest-vn-64893937 passed
2025-08-04 20:28:50,954 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9705b581-3f5c-40be-a779-1b6e4db19823
2025-08-04 20:28:50,968 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0ce6d1b-0220-4717-81b2-ca0eba3acf56
2025-08-04 20:28:50,978 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0ce6d1b-0220-4717-81b2-ca0eba3acf56
2025-08-04 20:28:50,989 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/fc2ec2e2-3819-4a0b-bce6-4cee452cc87f
2025-08-04 20:28:51,008 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94943918:ctest-vn-64893937', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94943918', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10882303641329090750', 'uuid-lslong': '12067706837079791651'}, 'enable': 'true', 'created': '2025-08-04T20:28:48', 'last-modified': '2025-08-04T20:28:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.077397'}
2025-08-04 20:28:51,018 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-04 20:28:51,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64893937 passed
2025-08-04 20:28:51,018 - DEBUG - ====Verifying policy data for ctest-vn-64893937 in API_Server ======
2025-08-04 20:28:51,018 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-04 20:28:51,027 - DEBUG - Requesting: http://10.0.0.48:8082/domain/73e228f5-a7a2-4f40-8159-2a93bcb8ee57
2025-08-04 20:28:51,043 - DEBUG - Requesting: http://10.0.0.48:8082/project/8937f9f0-041e-42e3-865c-7695ca3579c8
2025-08-04 20:28:51,120 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9705b581-3f5c-40be-a779-1b6e4db19823
2025-08-04 20:28:51,134 - DEBUG - ==>Verifying data for policy with id: 3eac7c27-ad69-42cb-aa30-b66fc1d5213f, fqn: ['default-domain', 'ctest-TestBasicPolicy-94943918', 'ctest-policy-allow-all-09065237']
2025-08-04 20:28:51,134 - INFO - VN ctest-vn-64893937 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-04 20:28:51,134 - DEBUG - Verifying the vn in opserver
2025-08-04 20:28:51,134 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94943918:ctest-vn-64893937 virtual network link through opserver 10.0.0.48
2025-08-04 20:28:51,135 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-04 20:28:51,476 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-04 20:28:51,548 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94943918:ctest-vn-64893937', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94943918:ctest-vn-64893937?flat'}
2025-08-04 20:28:51,549 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94943918:ctest-vn-64893937 is found in opserver
2025-08-04 20:28:51,563 - DEBUG - Do not have enough data to verify VN in agent
2025-08-04 20:28:51,571 - DEBUG - VRF ids for VN ctest-vn-64893937: {}
2025-08-04 20:28:51,571 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-04 20:28:51,579 - DEBUG - Requesting: http://10.0.0.48:8082/domain/73e228f5-a7a2-4f40-8159-2a93bcb8ee57
2025-08-04 20:28:51,597 - DEBUG - Requesting: http://10.0.0.48:8082/project/8937f9f0-041e-42e3-865c-7695ca3579c8
2025-08-04 20:28:51,676 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/97b3ea89-e76d-4bd2-9205-659104b94f79
2025-08-04 20:28:51,690 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/97b3ea89-e76d-4bd2-9205-659104b94f79
2025-08-04 20:28:51,704 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/395e7ed0-ef1d-4a2f-b44f-0b5ae16c744a
2025-08-04 20:28:51,715 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/395e7ed0-ef1d-4a2f-b44f-0b5ae16c744a
2025-08-04 20:28:51,729 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e441c6e9-122d-4454-9fd4-40756febb0fe
2025-08-04 20:28:51,737 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-04 20:28:51,737 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/97b3ea89-e76d-4bd2-9205-659104b94f79
2025-08-04 20:28:51,750 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/395e7ed0-ef1d-4a2f-b44f-0b5ae16c744a
2025-08-04 20:28:51,818 - INFO - Verified VN network id 12 for VN 97b3ea89-e76d-4bd2-9205-659104b94f79
2025-08-04 20:28:51,818 - INFO - Verifications in API Server for VN ctest-vn-51810358 passed
2025-08-04 20:28:51,818 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/97b3ea89-e76d-4bd2-9205-659104b94f79
2025-08-04 20:28:51,836 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/395e7ed0-ef1d-4a2f-b44f-0b5ae16c744a
2025-08-04 20:28:51,851 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/395e7ed0-ef1d-4a2f-b44f-0b5ae16c744a
2025-08-04 20:28:51,875 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e441c6e9-122d-4454-9fd4-40756febb0fe
2025-08-04 20:28:51,918 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94943918:ctest-vn-51810358', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94943918', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10931338598572444626', 'uuid-lslong': '10521927777944948601'}, 'enable': 'true', 'created': '2025-08-04T20:28:49', 'last-modified': '2025-08-04T20:28:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.750947'}
2025-08-04 20:28:51,926 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-04 20:28:51,926 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51810358 passed
2025-08-04 20:28:51,927 - DEBUG - ====Verifying policy data for ctest-vn-51810358 in API_Server ======
2025-08-04 20:28:51,927 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-04 20:28:51,945 - DEBUG - Requesting: http://10.0.0.48:8082/domain/73e228f5-a7a2-4f40-8159-2a93bcb8ee57
2025-08-04 20:28:52,026 - DEBUG - Requesting: http://10.0.0.48:8082/project/8937f9f0-041e-42e3-865c-7695ca3579c8
2025-08-04 20:28:52,144 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/97b3ea89-e76d-4bd2-9205-659104b94f79
2025-08-04 20:28:52,163 - DEBUG - ==>Verifying data for policy with id: 3eac7c27-ad69-42cb-aa30-b66fc1d5213f, fqn: ['default-domain', 'ctest-TestBasicPolicy-94943918', 'ctest-policy-allow-all-09065237']
2025-08-04 20:28:52,163 - INFO - VN ctest-vn-51810358 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-04 20:28:52,163 - DEBUG - Verifying the vn in opserver
2025-08-04 20:28:52,163 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94943918:ctest-vn-51810358 virtual network link through opserver 10.0.0.48
2025-08-04 20:28:52,163 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-04 20:28:52,178 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94943918:ctest-vn-51810358', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94943918:ctest-vn-51810358?flat'}
2025-08-04 20:28:52,178 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94943918:ctest-vn-51810358 is found in opserver
2025-08-04 20:28:52,194 - DEBUG - Do not have enough data to verify VN in agent
2025-08-04 20:28:52,204 - DEBUG - VRF ids for VN ctest-vn-51810358: {}
2025-08-04 20:28:52,302 - DEBUG - Services list from nova: [