2025-11-01 05:22:29,930 - INFO - Domain Default found not creating
2025-11-01 05:22:30,115 - INFO - Project ctest-TestBasicPolicy-23679549 not found, creating it
2025-11-01 05:22:30,590 - INFO - Created Project:ctest-TestBasicPolicy-23679549, ID : 749c614c-7112-427d-b948-527d1ededdb5
2025-11-01 05:22:32,205 - INFO - ================================================================================
2025-11-01 05:22:32,206 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-01 05:22:32,206 - 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-01 05:22:32,466 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-11-01 05:22:32,466 - INFO - Initial checks done. Running the testcase now
2025-11-01 05:22:32,466 - INFO -
2025-11-01 05:22:33,091 - DEBUG - Response for create_network : {'network': {'id': '7b68e590-5224-49b8-a901-df25ef77fed4', 'name': 'ctest-vn-00030668', 'tenant_id': '749c614c7112427db948527d1ededdb5', 'project_id': '749c614c7112427db948527d1ededdb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23679549', 'ctest-vn-00030668'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 05:22:33,318 - DEBUG - Response for create_subnet : {'subnet': {'id': '889669eb-1d48-45b8-b677-a3dffd975b5c', 'name': '', 'tenant_id': '749c614c7112427db948527d1ededdb5', 'network_id': '7b68e590-5224-49b8-a901-df25ef77fed4', 'ip_version': 4, 'cidr': '96.222.126.128/26', 'allocation_pools': [{'start': '96.222.126.130', 'end': '96.222.126.190'}], 'gateway_ip': '96.222.126.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.222.126.130', 'tags': [], 'project_id': '749c614c7112427db948527d1ededdb5'}}
2025-11-01 05:22:33,338 - INFO - Created VN ctest-vn-00030668
2025-11-01 05:22:33,392 - DEBUG - VN ctest-vn-00030668 UUID is 7b68e590-5224-49b8-a901-df25ef77fed4
2025-11-01 05:22:33,769 - DEBUG - Response for create_network : {'network': {'id': '48a50eb1-0bd4-4b1a-aea4-e45dd22f550e', 'name': 'ctest-vn-45069958', 'tenant_id': '749c614c7112427db948527d1ededdb5', 'project_id': '749c614c7112427db948527d1ededdb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23679549', 'ctest-vn-45069958'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 05:22:34,006 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e36eb897-31c1-402e-a5dd-e0809933eda8', 'name': '', 'tenant_id': '749c614c7112427db948527d1ededdb5', 'network_id': '48a50eb1-0bd4-4b1a-aea4-e45dd22f550e', 'ip_version': 4, 'cidr': '158.97.158.64/26', 'allocation_pools': [{'start': '158.97.158.66', 'end': '158.97.158.126'}], 'gateway_ip': '158.97.158.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.97.158.66', 'tags': [], 'project_id': '749c614c7112427db948527d1ededdb5'}}
2025-11-01 05:22:34,028 - INFO - Created VN ctest-vn-45069958
2025-11-01 05:22:34,084 - DEBUG - VN ctest-vn-45069958 UUID is 48a50eb1-0bd4-4b1a-aea4-e45dd22f550e
2025-11-01 05:22:34,195 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23679549:ctest-vn-00030668, 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-23679549:ctest-vn-45069958, 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-01 05:22:34,503 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b68e590-5224-49b8-a901-df25ef77fed4', 'name': 'ctest-vn-00030668', 'tenant_id': '749c614c7112427db948527d1ededdb5', 'project_id': '749c614c7112427db948527d1ededdb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['889669eb-1d48-45b8-b677-a3dffd975b5c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23679549', 'ctest-vn-00030668'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23679549', 'ctest-policy-allow-all-19365536']], 'subnet_ipam': [{'subnet_cidr': '96.222.126.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 05:22:34,759 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48a50eb1-0bd4-4b1a-aea4-e45dd22f550e', 'name': 'ctest-vn-45069958', 'tenant_id': '749c614c7112427db948527d1ededdb5', 'project_id': '749c614c7112427db948527d1ededdb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e36eb897-31c1-402e-a5dd-e0809933eda8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23679549', 'ctest-vn-45069958'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23679549', 'ctest-policy-allow-all-19365536']], 'subnet_ipam': [{'subnet_cidr': '158.97.158.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 05:22:34,924 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-01 05:22:35,285 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-01 05:22:35,314 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c2b9b77-6b59-414e-936b-68e888caca5b
2025-11-01 05:22:35,326 - DEBUG - Requesting: http://10.0.0.38:8082/project/749c614c-7112-427d-b948-527d1ededdb5
2025-11-01 05:22:35,396 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7b68e590-5224-49b8-a901-df25ef77fed4
2025-11-01 05:22:35,407 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7b68e590-5224-49b8-a901-df25ef77fed4
2025-11-01 05:22:35,417 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95813982-27d2-4ed5-ab98-85b722e6c3a3
2025-11-01 05:22:35,424 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95813982-27d2-4ed5-ab98-85b722e6c3a3
2025-11-01 05:22:35,432 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/80f3e1e7-8590-447c-9c49-146c39f83a30
2025-11-01 05:22:35,439 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 05:22:35,439 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7b68e590-5224-49b8-a901-df25ef77fed4
2025-11-01 05:22:35,449 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95813982-27d2-4ed5-ab98-85b722e6c3a3
2025-11-01 05:22:35,465 - INFO - Verified VN network id 11 for VN 7b68e590-5224-49b8-a901-df25ef77fed4
2025-11-01 05:22:35,465 - INFO - Verifications in API Server for VN ctest-vn-00030668 passed
2025-11-01 05:22:35,465 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7b68e590-5224-49b8-a901-df25ef77fed4
2025-11-01 05:22:35,476 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95813982-27d2-4ed5-ab98-85b722e6c3a3
2025-11-01 05:22:35,483 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95813982-27d2-4ed5-ab98-85b722e6c3a3
2025-11-01 05:22:35,491 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/80f3e1e7-8590-447c-9c49-146c39f83a30
2025-11-01 05:22:35,505 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23679549:ctest-vn-00030668', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23679549', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8892609872259205560', 'uuid-lslong': '12178260221410934484'}, 'enable': 'true', 'created': '2025-11-01T05:22:33', 'last-modified': '2025-11-01T05:22:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028337'}
2025-11-01 05:22:35,512 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 05:22:35,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00030668 passed
2025-11-01 05:22:35,513 - DEBUG - ====Verifying policy data for ctest-vn-00030668 in API_Server ======
2025-11-01 05:22:35,513 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-01 05:22:35,519 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c2b9b77-6b59-414e-936b-68e888caca5b
2025-11-01 05:22:35,531 - DEBUG - Requesting: http://10.0.0.38:8082/project/749c614c-7112-427d-b948-527d1ededdb5
2025-11-01 05:22:35,606 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7b68e590-5224-49b8-a901-df25ef77fed4
2025-11-01 05:22:35,622 - DEBUG - ==>Verifying data for policy with id: 66b1b6ee-e719-423e-b689-05294cecf3ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-23679549', 'ctest-policy-allow-all-19365536']
2025-11-01 05:22:35,623 - INFO - VN ctest-vn-00030668 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 05:22:35,623 - DEBUG - Verifying the vn in opserver
2025-11-01 05:22:35,623 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23679549:ctest-vn-00030668 virtual network link through opserver 10.0.0.38
2025-11-01 05:22:35,623 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-01 05:22:35,962 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-01 05:22:36,033 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23679549:ctest-vn-00030668', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23679549:ctest-vn-00030668?flat'}
2025-11-01 05:22:36,033 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23679549:ctest-vn-00030668 is found in opserver
2025-11-01 05:22:36,045 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 05:22:36,051 - DEBUG - VRF ids for VN ctest-vn-00030668: {}
2025-11-01 05:22:36,051 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-01 05:22:36,057 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c2b9b77-6b59-414e-936b-68e888caca5b
2025-11-01 05:22:36,070 - DEBUG - Requesting: http://10.0.0.38:8082/project/749c614c-7112-427d-b948-527d1ededdb5
2025-11-01 05:22:36,146 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48a50eb1-0bd4-4b1a-aea4-e45dd22f550e
2025-11-01 05:22:36,157 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48a50eb1-0bd4-4b1a-aea4-e45dd22f550e
2025-11-01 05:22:36,166 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bf7574af-2acf-46ea-a728-bdc52709bc40
2025-11-01 05:22:36,174 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bf7574af-2acf-46ea-a728-bdc52709bc40
2025-11-01 05:22:36,182 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fac1811a-c30e-421d-9837-60ee87892f5f
2025-11-01 05:22:36,189 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 05:22:36,189 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48a50eb1-0bd4-4b1a-aea4-e45dd22f550e
2025-11-01 05:22:36,199 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bf7574af-2acf-46ea-a728-bdc52709bc40
2025-11-01 05:22:36,213 - INFO - Verified VN network id 12 for VN 48a50eb1-0bd4-4b1a-aea4-e45dd22f550e
2025-11-01 05:22:36,213 - INFO - Verifications in API Server for VN ctest-vn-45069958 passed
2025-11-01 05:22:36,213 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48a50eb1-0bd4-4b1a-aea4-e45dd22f550e
2025-11-01 05:22:36,223 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bf7574af-2acf-46ea-a728-bdc52709bc40
2025-11-01 05:22:36,230 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bf7574af-2acf-46ea-a728-bdc52709bc40
2025-11-01 05:22:36,237 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fac1811a-c30e-421d-9837-60ee87892f5f
2025-11-01 05:22:36,250 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23679549:ctest-vn-45069958', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23679549', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5234606295458532122', 'uuid-lslong': '12584434350389417230'}, 'enable': 'true', 'created': '2025-11-01T05:22:33', 'last-modified': '2025-11-01T05:22:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.518664'}
2025-11-01 05:22:36,256 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 05:22:36,256 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45069958 passed
2025-11-01 05:22:36,257 - DEBUG - ====Verifying policy data for ctest-vn-45069958 in API_Server ======
2025-11-01 05:22:36,257 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-01 05:22:36,263 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c2b9b77-6b59-414e-936b-68e888caca5b
2025-11-01 05:22:36,274 - DEBUG - Requesting: http://10.0.0.38:8082/project/749c614c-7112-427d-b948-527d1ededdb5
2025-11-01 05:22:36,349 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48a50eb1-0bd4-4b1a-aea4-e45dd22f550e
2025-11-01 05:22:36,359 - DEBUG - ==>Verifying data for policy with id: 66b1b6ee-e719-423e-b689-05294cecf3ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-23679549', 'ctest-policy-allow-all-19365536']
2025-11-01 05:22:36,359 - INFO - VN ctest-vn-45069958 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 05:22:36,359 - DEBUG - Verifying the vn in opserver
2025-11-01 05:22:36,359 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23679549:ctest-vn-45069958 virtual network link through opserver 10.0.0.38
2025-11-01 05:22:36,359 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-01 05:22:36,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23679549:ctest-vn-45069958', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23679549:ctest-vn-45069958?flat'}
2025-11-01 05:22:36,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23679549:ctest-vn-45069958 is found in opserver
2025-11-01 05:22:36,380 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 05:22:36,385 - DEBUG - VRF ids for VN ctest-vn-45069958: {}
2025-11-01 05:22:36,448 - DEBUG - Services list from nova: [