2025-10-12 07:23:36,168 - INFO - Domain Default found not creating
2025-10-12 07:23:36,354 - INFO - Project ctest-TestBasicPolicy-78128908 not found, creating it
2025-10-12 07:23:36,889 - INFO - Created Project:ctest-TestBasicPolicy-78128908, ID : 9df2c784-77a1-4ee5-abdb-78f9fa75e436
2025-10-12 07:23:38,398 - INFO - ================================================================================
2025-10-12 07:23:38,398 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-12 07:23:38,398 - 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-10-12 07:23:38,654 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-10-12 07:23:38,654 - INFO - Initial checks done. Running the testcase now
2025-10-12 07:23:38,654 - INFO -
2025-10-12 07:23:39,261 - DEBUG - Response for create_network : {'network': {'id': 'd460e6b3-3c10-49d3-b1c6-109a709e7b22', 'name': 'ctest-vn-24968054', 'tenant_id': '9df2c78477a14ee5abdb78f9fa75e436', 'project_id': '9df2c78477a14ee5abdb78f9fa75e436', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78128908', 'ctest-vn-24968054'], 'port_security_enabled': True, 'description': ''}}
2025-10-12 07:23:39,467 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb99a738-8942-4ec9-9240-814336f99b62', 'name': '', 'tenant_id': '9df2c78477a14ee5abdb78f9fa75e436', 'network_id': 'd460e6b3-3c10-49d3-b1c6-109a709e7b22', 'ip_version': 4, 'cidr': '12.216.52.128/26', 'allocation_pools': [{'start': '12.216.52.130', 'end': '12.216.52.190'}], 'gateway_ip': '12.216.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.216.52.130', 'tags': [], 'project_id': '9df2c78477a14ee5abdb78f9fa75e436'}}
2025-10-12 07:23:39,487 - INFO - Created VN ctest-vn-24968054
2025-10-12 07:23:39,538 - DEBUG - VN ctest-vn-24968054 UUID is d460e6b3-3c10-49d3-b1c6-109a709e7b22
2025-10-12 07:23:39,847 - DEBUG - Response for create_network : {'network': {'id': 'f673cfa3-6fe2-4634-8ec2-aafcc1bdf440', 'name': 'ctest-vn-81940783', 'tenant_id': '9df2c78477a14ee5abdb78f9fa75e436', 'project_id': '9df2c78477a14ee5abdb78f9fa75e436', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78128908', 'ctest-vn-81940783'], 'port_security_enabled': True, 'description': ''}}
2025-10-12 07:23:40,077 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b76f481d-f7e4-48c3-957a-98094c859174', 'name': '', 'tenant_id': '9df2c78477a14ee5abdb78f9fa75e436', 'network_id': 'f673cfa3-6fe2-4634-8ec2-aafcc1bdf440', 'ip_version': 4, 'cidr': '32.108.225.128/26', 'allocation_pools': [{'start': '32.108.225.130', 'end': '32.108.225.190'}], 'gateway_ip': '32.108.225.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.108.225.130', 'tags': [], 'project_id': '9df2c78477a14ee5abdb78f9fa75e436'}}
2025-10-12 07:23:40,100 - INFO - Created VN ctest-vn-81940783
2025-10-12 07:23:40,154 - DEBUG - VN ctest-vn-81940783 UUID is f673cfa3-6fe2-4634-8ec2-aafcc1bdf440
2025-10-12 07:23:40,272 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78128908:ctest-vn-24968054, 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-78128908:ctest-vn-81940783, 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-10-12 07:23:40,572 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd460e6b3-3c10-49d3-b1c6-109a709e7b22', 'name': 'ctest-vn-24968054', 'tenant_id': '9df2c78477a14ee5abdb78f9fa75e436', 'project_id': '9df2c78477a14ee5abdb78f9fa75e436', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb99a738-8942-4ec9-9240-814336f99b62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78128908', 'ctest-vn-24968054'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78128908', 'ctest-policy-allow-all-63627276']], 'subnet_ipam': [{'subnet_cidr': '12.216.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-12 07:23:40,811 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f673cfa3-6fe2-4634-8ec2-aafcc1bdf440', 'name': 'ctest-vn-81940783', 'tenant_id': '9df2c78477a14ee5abdb78f9fa75e436', 'project_id': '9df2c78477a14ee5abdb78f9fa75e436', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b76f481d-f7e4-48c3-957a-98094c859174'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78128908', 'ctest-vn-81940783'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78128908', 'ctest-policy-allow-all-63627276']], 'subnet_ipam': [{'subnet_cidr': '32.108.225.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-12 07:23:40,991 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-12 07:23:41,290 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-12 07:23:41,326 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6e4b6059-756e-452a-9055-93dfea6dfe21
2025-10-12 07:23:41,338 - DEBUG - Requesting: http://10.0.0.254:8082/project/9df2c784-77a1-4ee5-abdb-78f9fa75e436
2025-10-12 07:23:41,410 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d460e6b3-3c10-49d3-b1c6-109a709e7b22
2025-10-12 07:23:41,423 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d460e6b3-3c10-49d3-b1c6-109a709e7b22
2025-10-12 07:23:41,433 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c6323327-f9fe-44ca-abd5-047c40bd72cf
2025-10-12 07:23:41,439 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c6323327-f9fe-44ca-abd5-047c40bd72cf
2025-10-12 07:23:41,447 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e5c533e2-92fd-4b9f-9b1a-fc41de2d0469
2025-10-12 07:23:41,454 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-12 07:23:41,454 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d460e6b3-3c10-49d3-b1c6-109a709e7b22
2025-10-12 07:23:41,463 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c6323327-f9fe-44ca-abd5-047c40bd72cf
2025-10-12 07:23:41,480 - INFO - Verified VN network id 11 for VN d460e6b3-3c10-49d3-b1c6-109a709e7b22
2025-10-12 07:23:41,480 - INFO - Verifications in API Server for VN ctest-vn-24968054 passed
2025-10-12 07:23:41,480 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d460e6b3-3c10-49d3-b1c6-109a709e7b22
2025-10-12 07:23:41,494 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c6323327-f9fe-44ca-abd5-047c40bd72cf
2025-10-12 07:23:41,503 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c6323327-f9fe-44ca-abd5-047c40bd72cf
2025-10-12 07:23:41,513 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e5c533e2-92fd-4b9f-9b1a-fc41de2d0469
2025-10-12 07:23:41,529 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78128908:ctest-vn-24968054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78128908', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15303485191286180307', 'uuid-lslong': '12809944445602396962'}, 'enable': 'true', 'created': '2025-10-12T07:23:39', 'last-modified': '2025-10-12T07:23:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986777'}
2025-10-12 07:23:41,537 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-12 07:23:41,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24968054 passed
2025-10-12 07:23:41,538 - DEBUG - ====Verifying policy data for ctest-vn-24968054 in API_Server ======
2025-10-12 07:23:41,538 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-12 07:23:41,545 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6e4b6059-756e-452a-9055-93dfea6dfe21
2025-10-12 07:23:41,557 - DEBUG - Requesting: http://10.0.0.254:8082/project/9df2c784-77a1-4ee5-abdb-78f9fa75e436
2025-10-12 07:23:41,632 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d460e6b3-3c10-49d3-b1c6-109a709e7b22
2025-10-12 07:23:41,644 - DEBUG - ==>Verifying data for policy with id: a914c578-10e2-49a3-ba26-95daa75b8169, fqn: ['default-domain', 'ctest-TestBasicPolicy-78128908', 'ctest-policy-allow-all-63627276']
2025-10-12 07:23:41,644 - INFO - VN ctest-vn-24968054 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-12 07:23:41,644 - DEBUG - Verifying the vn in opserver
2025-10-12 07:23:41,644 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78128908:ctest-vn-24968054 virtual network link through opserver 10.0.0.254
2025-10-12 07:23:41,644 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-12 07:23:41,940 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-12 07:23:42,004 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78128908:ctest-vn-24968054', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78128908:ctest-vn-24968054?flat'}
2025-10-12 07:23:42,004 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78128908:ctest-vn-24968054 is found in opserver
2025-10-12 07:23:42,016 - DEBUG - Do not have enough data to verify VN in agent
2025-10-12 07:23:42,020 - DEBUG - VRF ids for VN ctest-vn-24968054: {}
2025-10-12 07:23:42,020 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-12 07:23:42,026 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6e4b6059-756e-452a-9055-93dfea6dfe21
2025-10-12 07:23:42,036 - DEBUG - Requesting: http://10.0.0.254:8082/project/9df2c784-77a1-4ee5-abdb-78f9fa75e436
2025-10-12 07:23:42,113 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f673cfa3-6fe2-4634-8ec2-aafcc1bdf440
2025-10-12 07:23:42,126 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f673cfa3-6fe2-4634-8ec2-aafcc1bdf440
2025-10-12 07:23:42,135 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c35ad71b-4d8a-4a08-b381-0fc448df788d
2025-10-12 07:23:42,142 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c35ad71b-4d8a-4a08-b381-0fc448df788d
2025-10-12 07:23:42,150 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c559adf9-7817-4b13-9349-2fae71786e07
2025-10-12 07:23:42,158 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-12 07:23:42,158 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f673cfa3-6fe2-4634-8ec2-aafcc1bdf440
2025-10-12 07:23:42,169 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c35ad71b-4d8a-4a08-b381-0fc448df788d
2025-10-12 07:23:42,184 - INFO - Verified VN network id 12 for VN f673cfa3-6fe2-4634-8ec2-aafcc1bdf440
2025-10-12 07:23:42,185 - INFO - Verifications in API Server for VN ctest-vn-81940783 passed
2025-10-12 07:23:42,185 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f673cfa3-6fe2-4634-8ec2-aafcc1bdf440
2025-10-12 07:23:42,194 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c35ad71b-4d8a-4a08-b381-0fc448df788d
2025-10-12 07:23:42,202 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c35ad71b-4d8a-4a08-b381-0fc448df788d
2025-10-12 07:23:42,211 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c559adf9-7817-4b13-9349-2fae71786e07
2025-10-12 07:23:42,223 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78128908:ctest-vn-81940783', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78128908', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17758766056515716660', 'uuid-lslong': '10286972501426566208'}, 'enable': 'true', 'created': '2025-10-12T07:23:39', 'last-modified': '2025-10-12T07:23:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.434178'}
2025-10-12 07:23:42,228 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-12 07:23:42,228 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81940783 passed
2025-10-12 07:23:42,228 - DEBUG - ====Verifying policy data for ctest-vn-81940783 in API_Server ======
2025-10-12 07:23:42,229 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-12 07:23:42,234 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6e4b6059-756e-452a-9055-93dfea6dfe21
2025-10-12 07:23:42,248 - DEBUG - Requesting: http://10.0.0.254:8082/project/9df2c784-77a1-4ee5-abdb-78f9fa75e436
2025-10-12 07:23:42,325 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f673cfa3-6fe2-4634-8ec2-aafcc1bdf440
2025-10-12 07:23:42,335 - DEBUG - ==>Verifying data for policy with id: a914c578-10e2-49a3-ba26-95daa75b8169, fqn: ['default-domain', 'ctest-TestBasicPolicy-78128908', 'ctest-policy-allow-all-63627276']
2025-10-12 07:23:42,335 - INFO - VN ctest-vn-81940783 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-12 07:23:42,335 - DEBUG - Verifying the vn in opserver
2025-10-12 07:23:42,335 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78128908:ctest-vn-81940783 virtual network link through opserver 10.0.0.254
2025-10-12 07:23:42,335 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-12 07:23:42,345 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78128908:ctest-vn-81940783', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78128908:ctest-vn-81940783?flat'}
2025-10-12 07:23:42,346 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78128908:ctest-vn-81940783 is found in opserver
2025-10-12 07:23:42,355 - DEBUG - Do not have enough data to verify VN in agent
2025-10-12 07:23:42,360 - DEBUG - VRF ids for VN ctest-vn-81940783: {}
2025-10-12 07:23:42,426 - DEBUG - Services list from nova: [