2025-11-06 02:07:50,306 - INFO - Domain Default found not creating
2025-11-06 02:07:50,479 - INFO - Project ctest-TestBasicPolicy-37661989 not found, creating it
2025-11-06 02:07:50,956 - INFO - Created Project:ctest-TestBasicPolicy-37661989, ID : da9433a8-27b2-4c0b-b7b7-a5dcca95a854
2025-11-06 02:07:52,433 - INFO - ================================================================================
2025-11-06 02:07:52,433 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-06 02:07:52,433 - 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-11-06 02:07:52,688 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.201': '0'}} with
2025-11-06 02:07:52,688 - INFO - Initial checks done. Running the testcase now
2025-11-06 02:07:52,688 - INFO -
2025-11-06 02:07:53,297 - DEBUG - Response for create_network : {'network': {'id': '3ade87fe-b3ed-4f52-9f2a-43eb898cef68', 'name': 'ctest-vn-43219078', 'tenant_id': 'da9433a827b24c0bb7b7a5dcca95a854', 'project_id': 'da9433a827b24c0bb7b7a5dcca95a854', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37661989', 'ctest-vn-43219078'], 'port_security_enabled': True, 'description': ''}}
2025-11-06 02:07:53,487 - DEBUG - Response for create_subnet : {'subnet': {'id': '39752127-bbe3-429e-b625-00039955bfc2', 'name': '', 'tenant_id': 'da9433a827b24c0bb7b7a5dcca95a854', 'network_id': '3ade87fe-b3ed-4f52-9f2a-43eb898cef68', 'ip_version': 4, 'cidr': '87.36.103.0/26', 'allocation_pools': [{'start': '87.36.103.2', 'end': '87.36.103.62'}], 'gateway_ip': '87.36.103.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.36.103.2', 'tags': [], 'project_id': 'da9433a827b24c0bb7b7a5dcca95a854'}}
2025-11-06 02:07:53,513 - INFO - Created VN ctest-vn-43219078
2025-11-06 02:07:53,566 - DEBUG - VN ctest-vn-43219078 UUID is 3ade87fe-b3ed-4f52-9f2a-43eb898cef68
2025-11-06 02:07:53,879 - DEBUG - Response for create_network : {'network': {'id': 'a87690b1-6bfc-44b6-b6db-0800a5a0b008', 'name': 'ctest-vn-34801820', 'tenant_id': 'da9433a827b24c0bb7b7a5dcca95a854', 'project_id': 'da9433a827b24c0bb7b7a5dcca95a854', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37661989', 'ctest-vn-34801820'], 'port_security_enabled': True, 'description': ''}}
2025-11-06 02:07:54,039 - DEBUG - Response for create_subnet : {'subnet': {'id': '973cfcf6-3563-484e-97e2-312fb336fcb2', 'name': '', 'tenant_id': 'da9433a827b24c0bb7b7a5dcca95a854', 'network_id': 'a87690b1-6bfc-44b6-b6db-0800a5a0b008', 'ip_version': 4, 'cidr': '206.194.229.0/26', 'allocation_pools': [{'start': '206.194.229.2', 'end': '206.194.229.62'}], 'gateway_ip': '206.194.229.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.194.229.2', 'tags': [], 'project_id': 'da9433a827b24c0bb7b7a5dcca95a854'}}
2025-11-06 02:07:54,060 - INFO - Created VN ctest-vn-34801820
2025-11-06 02:07:54,110 - DEBUG - VN ctest-vn-34801820 UUID is a87690b1-6bfc-44b6-b6db-0800a5a0b008
2025-11-06 02:07:54,229 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37661989:ctest-vn-43219078, 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-37661989:ctest-vn-34801820, 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-11-06 02:07:54,555 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ade87fe-b3ed-4f52-9f2a-43eb898cef68', 'name': 'ctest-vn-43219078', 'tenant_id': 'da9433a827b24c0bb7b7a5dcca95a854', 'project_id': 'da9433a827b24c0bb7b7a5dcca95a854', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39752127-bbe3-429e-b625-00039955bfc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37661989', 'ctest-vn-43219078'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37661989', 'ctest-policy-allow-all-92971957']], 'subnet_ipam': [{'subnet_cidr': '87.36.103.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-06 02:07:54,805 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a87690b1-6bfc-44b6-b6db-0800a5a0b008', 'name': 'ctest-vn-34801820', 'tenant_id': 'da9433a827b24c0bb7b7a5dcca95a854', 'project_id': 'da9433a827b24c0bb7b7a5dcca95a854', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['973cfcf6-3563-484e-97e2-312fb336fcb2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37661989', 'ctest-vn-34801820'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37661989', 'ctest-policy-allow-all-92971957']], 'subnet_ipam': [{'subnet_cidr': '206.194.229.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-06 02:07:54,958 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-06 02:07:55,267 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-06 02:07:55,307 - DEBUG - Requesting: http://10.0.0.249:8082/domain/3988296a-87b2-4249-a107-eb83f2d2fe96
2025-11-06 02:07:55,325 - DEBUG - Requesting: http://10.0.0.249:8082/project/da9433a8-27b2-4c0b-b7b7-a5dcca95a854
2025-11-06 02:07:55,409 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3ade87fe-b3ed-4f52-9f2a-43eb898cef68
2025-11-06 02:07:55,422 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3ade87fe-b3ed-4f52-9f2a-43eb898cef68
2025-11-06 02:07:55,434 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4c4eca12-14db-4897-ba45-c4ea00be165a
2025-11-06 02:07:55,444 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4c4eca12-14db-4897-ba45-c4ea00be165a
2025-11-06 02:07:55,453 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b82f189c-e7ae-4d6b-a900-e168ccdde113
2025-11-06 02:07:55,461 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-06 02:07:55,461 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3ade87fe-b3ed-4f52-9f2a-43eb898cef68
2025-11-06 02:07:55,474 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4c4eca12-14db-4897-ba45-c4ea00be165a
2025-11-06 02:07:55,493 - INFO - Verified VN network id 11 for VN 3ade87fe-b3ed-4f52-9f2a-43eb898cef68
2025-11-06 02:07:55,493 - INFO - Verifications in API Server for VN ctest-vn-43219078 passed
2025-11-06 02:07:55,493 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3ade87fe-b3ed-4f52-9f2a-43eb898cef68
2025-11-06 02:07:55,504 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4c4eca12-14db-4897-ba45-c4ea00be165a
2025-11-06 02:07:55,513 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4c4eca12-14db-4897-ba45-c4ea00be165a
2025-11-06 02:07:55,523 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b82f189c-e7ae-4d6b-a900-e168ccdde113
2025-11-06 02:07:55,539 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37661989:ctest-vn-43219078', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37661989', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4241977427039702866', 'uuid-lslong': '11469054079956479848'}, 'enable': 'true', 'created': '2025-11-06T02:07:53', 'last-modified': '2025-11-06T02:07:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020862'}
2025-11-06 02:07:55,547 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-06 02:07:55,547 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43219078 passed
2025-11-06 02:07:55,547 - DEBUG - ====Verifying policy data for ctest-vn-43219078 in API_Server ======
2025-11-06 02:07:55,548 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-06 02:07:55,555 - DEBUG - Requesting: http://10.0.0.249:8082/domain/3988296a-87b2-4249-a107-eb83f2d2fe96
2025-11-06 02:07:55,571 - DEBUG - Requesting: http://10.0.0.249:8082/project/da9433a8-27b2-4c0b-b7b7-a5dcca95a854
2025-11-06 02:07:55,647 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3ade87fe-b3ed-4f52-9f2a-43eb898cef68
2025-11-06 02:07:55,656 - DEBUG - ==>Verifying data for policy with id: 96c51dd4-7f3b-4408-99f7-035c0808b8aa, fqn: ['default-domain', 'ctest-TestBasicPolicy-37661989', 'ctest-policy-allow-all-92971957']
2025-11-06 02:07:55,656 - INFO - VN ctest-vn-43219078 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-06 02:07:55,656 - DEBUG - Verifying the vn in opserver
2025-11-06 02:07:55,656 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37661989:ctest-vn-43219078 virtual network link through opserver 10.0.0.249
2025-11-06 02:07:55,656 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-06 02:07:55,952 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-06 02:07:56,014 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37661989:ctest-vn-43219078', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37661989:ctest-vn-43219078?flat'}
2025-11-06 02:07:56,014 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37661989:ctest-vn-43219078 is found in opserver
2025-11-06 02:07:56,025 - DEBUG - Do not have enough data to verify VN in agent
2025-11-06 02:07:56,030 - DEBUG - VRF ids for VN ctest-vn-43219078: {}
2025-11-06 02:07:56,030 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-06 02:07:56,036 - DEBUG - Requesting: http://10.0.0.249:8082/domain/3988296a-87b2-4249-a107-eb83f2d2fe96
2025-11-06 02:07:56,049 - DEBUG - Requesting: http://10.0.0.249:8082/project/da9433a8-27b2-4c0b-b7b7-a5dcca95a854
2025-11-06 02:07:56,119 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a87690b1-6bfc-44b6-b6db-0800a5a0b008
2025-11-06 02:07:56,131 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a87690b1-6bfc-44b6-b6db-0800a5a0b008
2025-11-06 02:07:56,140 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3d2bc916-706e-4bab-b568-ec598188f5ee
2025-11-06 02:07:56,147 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3d2bc916-706e-4bab-b568-ec598188f5ee
2025-11-06 02:07:56,155 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/40207a01-f4c4-4d69-a061-152ff6c1d9e5
2025-11-06 02:07:56,163 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-06 02:07:56,163 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a87690b1-6bfc-44b6-b6db-0800a5a0b008
2025-11-06 02:07:56,173 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3d2bc916-706e-4bab-b568-ec598188f5ee
2025-11-06 02:07:56,189 - INFO - Verified VN network id 12 for VN a87690b1-6bfc-44b6-b6db-0800a5a0b008
2025-11-06 02:07:56,189 - INFO - Verifications in API Server for VN ctest-vn-34801820 passed
2025-11-06 02:07:56,189 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a87690b1-6bfc-44b6-b6db-0800a5a0b008
2025-11-06 02:07:56,198 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3d2bc916-706e-4bab-b568-ec598188f5ee
2025-11-06 02:07:56,205 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3d2bc916-706e-4bab-b568-ec598188f5ee
2025-11-06 02:07:56,212 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/40207a01-f4c4-4d69-a061-152ff6c1d9e5
2025-11-06 02:07:56,225 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37661989:ctest-vn-34801820', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37661989', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12139048937319056566', 'uuid-lslong': '13176133933674311688'}, 'enable': 'true', 'created': '2025-11-06T02:07:53', 'last-modified': '2025-11-06T02:07:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441520'}
2025-11-06 02:07:56,231 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-06 02:07:56,231 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34801820 passed
2025-11-06 02:07:56,232 - DEBUG - ====Verifying policy data for ctest-vn-34801820 in API_Server ======
2025-11-06 02:07:56,232 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-06 02:07:56,238 - DEBUG - Requesting: http://10.0.0.249:8082/domain/3988296a-87b2-4249-a107-eb83f2d2fe96
2025-11-06 02:07:56,249 - DEBUG - Requesting: http://10.0.0.249:8082/project/da9433a8-27b2-4c0b-b7b7-a5dcca95a854
2025-11-06 02:07:56,328 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a87690b1-6bfc-44b6-b6db-0800a5a0b008
2025-11-06 02:07:56,337 - DEBUG - ==>Verifying data for policy with id: 96c51dd4-7f3b-4408-99f7-035c0808b8aa, fqn: ['default-domain', 'ctest-TestBasicPolicy-37661989', 'ctest-policy-allow-all-92971957']
2025-11-06 02:07:56,337 - INFO - VN ctest-vn-34801820 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-06 02:07:56,337 - DEBUG - Verifying the vn in opserver
2025-11-06 02:07:56,337 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37661989:ctest-vn-34801820 virtual network link through opserver 10.0.0.249
2025-11-06 02:07:56,337 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-06 02:07:56,349 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37661989:ctest-vn-34801820', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37661989:ctest-vn-34801820?flat'}
2025-11-06 02:07:56,349 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37661989:ctest-vn-34801820 is found in opserver
2025-11-06 02:07:56,361 - DEBUG - Do not have enough data to verify VN in agent
2025-11-06 02:07:56,367 - DEBUG - VRF ids for VN ctest-vn-34801820: {}
2025-11-06 02:07:56,431 - DEBUG - Services list from nova: [