2025-08-10 09:29:14,906 - INFO - Domain Default found not creating
2025-08-10 09:29:15,017 - INFO - Project ctest-TestBasicPolicy-15063597 not found, creating it
2025-08-10 09:29:15,520 - INFO - Created Project:ctest-TestBasicPolicy-15063597, ID : 845a1dfd-1de9-4a01-8d06-178e956e8ed8
2025-08-10 09:29:16,890 - INFO - ================================================================================
2025-08-10 09:29:16,890 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-10 09:29:16,890 - 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-10 09:29:17,141 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-08-10 09:29:17,141 - INFO - Initial checks done. Running the testcase now
2025-08-10 09:29:17,141 - INFO -
2025-08-10 09:29:17,662 - DEBUG - Response for create_network : {'network': {'id': '0a7b03b4-dcea-49fe-b12c-be811a381a65', 'name': 'ctest-vn-49276434', 'tenant_id': '845a1dfd1de94a018d06178e956e8ed8', 'project_id': '845a1dfd1de94a018d06178e956e8ed8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15063597', 'ctest-vn-49276434'], 'port_security_enabled': True, 'description': ''}}
2025-08-10 09:29:17,877 - DEBUG - Response for create_subnet : {'subnet': {'id': '0525b762-9c37-4096-bd69-05cf5e3fc25a', 'name': '', 'tenant_id': '845a1dfd1de94a018d06178e956e8ed8', 'network_id': '0a7b03b4-dcea-49fe-b12c-be811a381a65', 'ip_version': 4, 'cidr': '145.219.154.128/26', 'allocation_pools': [{'start': '145.219.154.130', 'end': '145.219.154.190'}], 'gateway_ip': '145.219.154.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.219.154.130', 'tags': [], 'project_id': '845a1dfd1de94a018d06178e956e8ed8'}}
2025-08-10 09:29:17,894 - INFO - Created VN ctest-vn-49276434
2025-08-10 09:29:17,944 - DEBUG - VN ctest-vn-49276434 UUID is 0a7b03b4-dcea-49fe-b12c-be811a381a65
2025-08-10 09:29:18,244 - DEBUG - Response for create_network : {'network': {'id': '0065bd48-3afb-472c-81ce-2bbd9e1c567b', 'name': 'ctest-vn-39800608', 'tenant_id': '845a1dfd1de94a018d06178e956e8ed8', 'project_id': '845a1dfd1de94a018d06178e956e8ed8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15063597', 'ctest-vn-39800608'], 'port_security_enabled': True, 'description': ''}}
2025-08-10 09:29:18,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '807fc443-5faa-4def-9476-1b0546def789', 'name': '', 'tenant_id': '845a1dfd1de94a018d06178e956e8ed8', 'network_id': '0065bd48-3afb-472c-81ce-2bbd9e1c567b', 'ip_version': 4, 'cidr': '153.100.119.192/26', 'allocation_pools': [{'start': '153.100.119.194', 'end': '153.100.119.254'}], 'gateway_ip': '153.100.119.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.100.119.194', 'tags': [], 'project_id': '845a1dfd1de94a018d06178e956e8ed8'}}
2025-08-10 09:29:18,464 - INFO - Created VN ctest-vn-39800608
2025-08-10 09:29:18,516 - DEBUG - VN ctest-vn-39800608 UUID is 0065bd48-3afb-472c-81ce-2bbd9e1c567b
2025-08-10 09:29:18,648 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15063597:ctest-vn-49276434, 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-15063597:ctest-vn-39800608, 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-10 09:29:18,941 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0a7b03b4-dcea-49fe-b12c-be811a381a65', 'name': 'ctest-vn-49276434', 'tenant_id': '845a1dfd1de94a018d06178e956e8ed8', 'project_id': '845a1dfd1de94a018d06178e956e8ed8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0525b762-9c37-4096-bd69-05cf5e3fc25a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15063597', 'ctest-vn-49276434'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15063597', 'ctest-policy-allow-all-10893691']], 'subnet_ipam': [{'subnet_cidr': '145.219.154.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-10 09:29:19,213 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0065bd48-3afb-472c-81ce-2bbd9e1c567b', 'name': 'ctest-vn-39800608', 'tenant_id': '845a1dfd1de94a018d06178e956e8ed8', 'project_id': '845a1dfd1de94a018d06178e956e8ed8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['807fc443-5faa-4def-9476-1b0546def789'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15063597', 'ctest-vn-39800608'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15063597', 'ctest-policy-allow-all-10893691']], 'subnet_ipam': [{'subnet_cidr': '153.100.119.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-10 09:29:19,360 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-10 09:29:19,653 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-10 09:29:19,678 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1b4cb339-e1f4-4999-9237-131f3eae35de
2025-08-10 09:29:19,690 - DEBUG - Requesting: http://10.0.0.49:8082/project/845a1dfd-1de9-4a01-8d06-178e956e8ed8
2025-08-10 09:29:19,764 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0a7b03b4-dcea-49fe-b12c-be811a381a65
2025-08-10 09:29:19,775 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0a7b03b4-dcea-49fe-b12c-be811a381a65
2025-08-10 09:29:19,783 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f911b302-6436-464a-93bf-871bfdbb04be
2025-08-10 09:29:19,789 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f911b302-6436-464a-93bf-871bfdbb04be
2025-08-10 09:29:19,795 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/0ac56e8a-5093-4382-9639-6b2b992911e3
2025-08-10 09:29:19,800 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-10 09:29:19,800 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0a7b03b4-dcea-49fe-b12c-be811a381a65
2025-08-10 09:29:19,808 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f911b302-6436-464a-93bf-871bfdbb04be
2025-08-10 09:29:19,820 - INFO - Verified VN network id 11 for VN 0a7b03b4-dcea-49fe-b12c-be811a381a65
2025-08-10 09:29:19,820 - INFO - Verifications in API Server for VN ctest-vn-49276434 passed
2025-08-10 09:29:19,820 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0a7b03b4-dcea-49fe-b12c-be811a381a65
2025-08-10 09:29:19,828 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f911b302-6436-464a-93bf-871bfdbb04be
2025-08-10 09:29:19,834 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f911b302-6436-464a-93bf-871bfdbb04be
2025-08-10 09:29:19,840 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/0ac56e8a-5093-4382-9639-6b2b992911e3
2025-08-10 09:29:19,851 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15063597:ctest-vn-49276434', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15063597', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '755201437850028542', 'uuid-lslong': '12766788505388456549'}, 'enable': 'true', 'created': '2025-08-10T09:29:17', 'last-modified': '2025-08-10T09:29:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.941707'}
2025-08-10 09:29:19,856 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-10 09:29:19,857 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49276434 passed
2025-08-10 09:29:19,857 - DEBUG - ====Verifying policy data for ctest-vn-49276434 in API_Server ======
2025-08-10 09:29:19,857 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-10 09:29:19,861 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1b4cb339-e1f4-4999-9237-131f3eae35de
2025-08-10 09:29:19,871 - DEBUG - Requesting: http://10.0.0.49:8082/project/845a1dfd-1de9-4a01-8d06-178e956e8ed8
2025-08-10 09:29:19,943 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0a7b03b4-dcea-49fe-b12c-be811a381a65
2025-08-10 09:29:19,951 - DEBUG - ==>Verifying data for policy with id: 6192497f-d7fb-4f33-bb54-7c5e4a29f92e, fqn: ['default-domain', 'ctest-TestBasicPolicy-15063597', 'ctest-policy-allow-all-10893691']
2025-08-10 09:29:19,951 - INFO - VN ctest-vn-49276434 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-10 09:29:19,952 - DEBUG - Verifying the vn in opserver
2025-08-10 09:29:19,952 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15063597:ctest-vn-49276434 virtual network link through opserver 10.0.0.49
2025-08-10 09:29:19,952 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-10 09:29:20,239 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-10 09:29:20,287 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15063597:ctest-vn-49276434', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15063597:ctest-vn-49276434?flat'}
2025-08-10 09:29:20,287 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15063597:ctest-vn-49276434 is found in opserver
2025-08-10 09:29:20,297 - DEBUG - Do not have enough data to verify VN in agent
2025-08-10 09:29:20,302 - DEBUG - VRF ids for VN ctest-vn-49276434: {}
2025-08-10 09:29:20,302 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-10 09:29:20,306 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1b4cb339-e1f4-4999-9237-131f3eae35de
2025-08-10 09:29:20,317 - DEBUG - Requesting: http://10.0.0.49:8082/project/845a1dfd-1de9-4a01-8d06-178e956e8ed8
2025-08-10 09:29:20,385 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0065bd48-3afb-472c-81ce-2bbd9e1c567b
2025-08-10 09:29:20,397 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0065bd48-3afb-472c-81ce-2bbd9e1c567b
2025-08-10 09:29:20,406 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/70d41869-d6e3-44d3-ae15-4fe0beb6bcc8
2025-08-10 09:29:20,412 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/70d41869-d6e3-44d3-ae15-4fe0beb6bcc8
2025-08-10 09:29:20,418 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/bfaa9f2e-05da-4fbf-bd3b-6314c8563a24
2025-08-10 09:29:20,423 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-10 09:29:20,423 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0065bd48-3afb-472c-81ce-2bbd9e1c567b
2025-08-10 09:29:20,431 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/70d41869-d6e3-44d3-ae15-4fe0beb6bcc8
2025-08-10 09:29:20,443 - INFO - Verified VN network id 12 for VN 0065bd48-3afb-472c-81ce-2bbd9e1c567b
2025-08-10 09:29:20,443 - INFO - Verifications in API Server for VN ctest-vn-39800608 passed
2025-08-10 09:29:20,443 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0065bd48-3afb-472c-81ce-2bbd9e1c567b
2025-08-10 09:29:20,451 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/70d41869-d6e3-44d3-ae15-4fe0beb6bcc8
2025-08-10 09:29:20,457 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/70d41869-d6e3-44d3-ae15-4fe0beb6bcc8
2025-08-10 09:29:20,463 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/bfaa9f2e-05da-4fbf-bd3b-6314c8563a24
2025-08-10 09:29:20,473 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15063597:ctest-vn-39800608', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15063597', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '28637090572617516', 'uuid-lslong': '9353461569496569467'}, 'enable': 'true', 'created': '2025-08-10T09:29:18', 'last-modified': '2025-08-10T09:29:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.329667'}
2025-08-10 09:29:20,479 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-10 09:29:20,479 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39800608 passed
2025-08-10 09:29:20,479 - DEBUG - ====Verifying policy data for ctest-vn-39800608 in API_Server ======
2025-08-10 09:29:20,479 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-10 09:29:20,484 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1b4cb339-e1f4-4999-9237-131f3eae35de
2025-08-10 09:29:20,494 - DEBUG - Requesting: http://10.0.0.49:8082/project/845a1dfd-1de9-4a01-8d06-178e956e8ed8
2025-08-10 09:29:20,566 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0065bd48-3afb-472c-81ce-2bbd9e1c567b
2025-08-10 09:29:20,575 - DEBUG - ==>Verifying data for policy with id: 6192497f-d7fb-4f33-bb54-7c5e4a29f92e, fqn: ['default-domain', 'ctest-TestBasicPolicy-15063597', 'ctest-policy-allow-all-10893691']
2025-08-10 09:29:20,575 - INFO - VN ctest-vn-39800608 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-10 09:29:20,575 - DEBUG - Verifying the vn in opserver
2025-08-10 09:29:20,575 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15063597:ctest-vn-39800608 virtual network link through opserver 10.0.0.49
2025-08-10 09:29:20,575 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-10 09:29:20,585 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15063597:ctest-vn-39800608', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15063597:ctest-vn-39800608?flat'}
2025-08-10 09:29:20,585 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15063597:ctest-vn-39800608 is found in opserver
2025-08-10 09:29:20,595 - DEBUG - Do not have enough data to verify VN in agent
2025-08-10 09:29:20,599 - DEBUG - VRF ids for VN ctest-vn-39800608: {}
2025-08-10 09:29:20,647 - DEBUG - Services list from nova: [