2025-08-12 16:34:37,187 - INFO - Domain Default found not creating
2025-08-12 16:34:37,303 - INFO - Project ctest-TestBasicPolicy-24580981 not found, creating it
2025-08-12 16:34:37,738 - INFO - Created Project:ctest-TestBasicPolicy-24580981, ID : bf60d4b3-b475-42f2-9361-1b58e927640a
2025-08-12 16:34:39,116 - INFO - ================================================================================
2025-08-12 16:34:39,116 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-12 16:34:39,116 - 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-12 16:34:39,371 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-08-12 16:34:39,371 - INFO - Initial checks done. Running the testcase now
2025-08-12 16:34:39,371 - INFO -
2025-08-12 16:34:39,881 - DEBUG - Response for create_network : {'network': {'id': 'c6877f6a-38bb-43d2-a42b-fd2588e30ace', 'name': 'ctest-vn-04129467', 'tenant_id': 'bf60d4b3b47542f293611b58e927640a', 'project_id': 'bf60d4b3b47542f293611b58e927640a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24580981', 'ctest-vn-04129467'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 16:34:40,042 - DEBUG - Response for create_subnet : {'subnet': {'id': '8976ab2b-0544-4a79-b594-97562a808318', 'name': '', 'tenant_id': 'bf60d4b3b47542f293611b58e927640a', 'network_id': 'c6877f6a-38bb-43d2-a42b-fd2588e30ace', 'ip_version': 4, 'cidr': '17.207.120.0/26', 'allocation_pools': [{'start': '17.207.120.2', 'end': '17.207.120.62'}], 'gateway_ip': '17.207.120.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.207.120.2', 'tags': [], 'project_id': 'bf60d4b3b47542f293611b58e927640a'}}
2025-08-12 16:34:40,057 - INFO - Created VN ctest-vn-04129467
2025-08-12 16:34:40,110 - DEBUG - VN ctest-vn-04129467 UUID is c6877f6a-38bb-43d2-a42b-fd2588e30ace
2025-08-12 16:34:40,413 - DEBUG - Response for create_network : {'network': {'id': '465e0d4f-1eb2-4f63-b58d-c766c2b1e1ea', 'name': 'ctest-vn-53037584', 'tenant_id': 'bf60d4b3b47542f293611b58e927640a', 'project_id': 'bf60d4b3b47542f293611b58e927640a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24580981', 'ctest-vn-53037584'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 16:34:40,595 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e9576c6-640d-479c-8c76-b662797dc05d', 'name': '', 'tenant_id': 'bf60d4b3b47542f293611b58e927640a', 'network_id': '465e0d4f-1eb2-4f63-b58d-c766c2b1e1ea', 'ip_version': 4, 'cidr': '99.251.172.64/26', 'allocation_pools': [{'start': '99.251.172.66', 'end': '99.251.172.126'}], 'gateway_ip': '99.251.172.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.251.172.66', 'tags': [], 'project_id': 'bf60d4b3b47542f293611b58e927640a'}}
2025-08-12 16:34:40,611 - INFO - Created VN ctest-vn-53037584
2025-08-12 16:34:40,662 - DEBUG - VN ctest-vn-53037584 UUID is 465e0d4f-1eb2-4f63-b58d-c766c2b1e1ea
2025-08-12 16:34:40,805 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24580981:ctest-vn-04129467, 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-24580981:ctest-vn-53037584, 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-12 16:34:41,088 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6877f6a-38bb-43d2-a42b-fd2588e30ace', 'name': 'ctest-vn-04129467', 'tenant_id': 'bf60d4b3b47542f293611b58e927640a', 'project_id': 'bf60d4b3b47542f293611b58e927640a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8976ab2b-0544-4a79-b594-97562a808318'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24580981', 'ctest-vn-04129467'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24580981', 'ctest-policy-allow-all-71958433']], 'subnet_ipam': [{'subnet_cidr': '17.207.120.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 16:34:41,318 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '465e0d4f-1eb2-4f63-b58d-c766c2b1e1ea', 'name': 'ctest-vn-53037584', 'tenant_id': 'bf60d4b3b47542f293611b58e927640a', 'project_id': 'bf60d4b3b47542f293611b58e927640a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e9576c6-640d-479c-8c76-b662797dc05d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24580981', 'ctest-vn-53037584'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24580981', 'ctest-policy-allow-all-71958433']], 'subnet_ipam': [{'subnet_cidr': '99.251.172.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 16:34:41,470 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 16:34:41,760 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 16:34:41,786 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3eb6089a-0f0d-4d39-a57e-fc885ba675d3
2025-08-12 16:34:41,803 - DEBUG - Requesting: http://10.0.0.254:8082/project/bf60d4b3-b475-42f2-9361-1b58e927640a
2025-08-12 16:34:41,875 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6877f6a-38bb-43d2-a42b-fd2588e30ace
2025-08-12 16:34:41,885 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6877f6a-38bb-43d2-a42b-fd2588e30ace
2025-08-12 16:34:41,894 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/578b344c-5444-4d86-800c-731edd5f478c
2025-08-12 16:34:41,900 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/578b344c-5444-4d86-800c-731edd5f478c
2025-08-12 16:34:41,906 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7cdcc199-bd4d-4508-9986-4a7931805957
2025-08-12 16:34:41,912 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 16:34:41,912 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6877f6a-38bb-43d2-a42b-fd2588e30ace
2025-08-12 16:34:41,920 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/578b344c-5444-4d86-800c-731edd5f478c
2025-08-12 16:34:41,932 - INFO - Verified VN network id 11 for VN c6877f6a-38bb-43d2-a42b-fd2588e30ace
2025-08-12 16:34:41,932 - INFO - Verifications in API Server for VN ctest-vn-04129467 passed
2025-08-12 16:34:41,932 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6877f6a-38bb-43d2-a42b-fd2588e30ace
2025-08-12 16:34:41,941 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/578b344c-5444-4d86-800c-731edd5f478c
2025-08-12 16:34:41,947 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/578b344c-5444-4d86-800c-731edd5f478c
2025-08-12 16:34:41,953 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7cdcc199-bd4d-4508-9986-4a7931805957
2025-08-12 16:34:41,964 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24580981:ctest-vn-04129467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24580981', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14305542835560727506', 'uuid-lslong': '11829827183870937806'}, 'enable': 'true', 'created': '2025-08-12T16:34:39', 'last-modified': '2025-08-12T16:34:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897617'}
2025-08-12 16:34:41,970 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 16:34:41,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04129467 passed
2025-08-12 16:34:41,970 - DEBUG - ====Verifying policy data for ctest-vn-04129467 in API_Server ======
2025-08-12 16:34:41,970 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 16:34:41,975 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3eb6089a-0f0d-4d39-a57e-fc885ba675d3
2025-08-12 16:34:41,984 - DEBUG - Requesting: http://10.0.0.254:8082/project/bf60d4b3-b475-42f2-9361-1b58e927640a
2025-08-12 16:34:42,060 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6877f6a-38bb-43d2-a42b-fd2588e30ace
2025-08-12 16:34:42,069 - DEBUG - ==>Verifying data for policy with id: 2ffa284e-32ac-4d82-bc12-dad5685523fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-24580981', 'ctest-policy-allow-all-71958433']
2025-08-12 16:34:42,069 - INFO - VN ctest-vn-04129467 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 16:34:42,069 - DEBUG - Verifying the vn in opserver
2025-08-12 16:34:42,069 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24580981:ctest-vn-04129467 virtual network link through opserver 10.0.0.254
2025-08-12 16:34:42,069 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-12 16:34:42,358 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-12 16:34:42,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24580981:ctest-vn-04129467', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24580981:ctest-vn-04129467?flat'}
2025-08-12 16:34:42,408 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24580981:ctest-vn-04129467 is found in opserver
2025-08-12 16:34:42,419 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 16:34:42,424 - DEBUG - VRF ids for VN ctest-vn-04129467: {}
2025-08-12 16:34:42,424 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 16:34:42,429 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3eb6089a-0f0d-4d39-a57e-fc885ba675d3
2025-08-12 16:34:42,439 - DEBUG - Requesting: http://10.0.0.254:8082/project/bf60d4b3-b475-42f2-9361-1b58e927640a
2025-08-12 16:34:42,505 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/465e0d4f-1eb2-4f63-b58d-c766c2b1e1ea
2025-08-12 16:34:42,515 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/465e0d4f-1eb2-4f63-b58d-c766c2b1e1ea
2025-08-12 16:34:42,523 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5cc6a348-9ae1-4b8c-873a-ca4a6819009f
2025-08-12 16:34:42,529 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5cc6a348-9ae1-4b8c-873a-ca4a6819009f
2025-08-12 16:34:42,535 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9693505c-9fc1-47da-aa3a-fdc86fd7fe82
2025-08-12 16:34:42,540 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 16:34:42,540 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/465e0d4f-1eb2-4f63-b58d-c766c2b1e1ea
2025-08-12 16:34:42,548 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5cc6a348-9ae1-4b8c-873a-ca4a6819009f
2025-08-12 16:34:42,566 - INFO - Verified VN network id 12 for VN 465e0d4f-1eb2-4f63-b58d-c766c2b1e1ea
2025-08-12 16:34:42,566 - INFO - Verifications in API Server for VN ctest-vn-53037584 passed
2025-08-12 16:34:42,566 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/465e0d4f-1eb2-4f63-b58d-c766c2b1e1ea
2025-08-12 16:34:42,576 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5cc6a348-9ae1-4b8c-873a-ca4a6819009f
2025-08-12 16:34:42,582 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5cc6a348-9ae1-4b8c-873a-ca4a6819009f
2025-08-12 16:34:42,588 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9693505c-9fc1-47da-aa3a-fdc86fd7fe82
2025-08-12 16:34:42,599 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24580981:ctest-vn-53037584', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24580981', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5070504863934336867', 'uuid-lslong': '13082331736748188138'}, 'enable': 'true', 'created': '2025-08-12T16:34:40', 'last-modified': '2025-08-12T16:34:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.304661'}
2025-08-12 16:34:42,606 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 16:34:42,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53037584 passed
2025-08-12 16:34:42,606 - DEBUG - ====Verifying policy data for ctest-vn-53037584 in API_Server ======
2025-08-12 16:34:42,606 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 16:34:42,610 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3eb6089a-0f0d-4d39-a57e-fc885ba675d3
2025-08-12 16:34:42,620 - DEBUG - Requesting: http://10.0.0.254:8082/project/bf60d4b3-b475-42f2-9361-1b58e927640a
2025-08-12 16:34:42,710 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/465e0d4f-1eb2-4f63-b58d-c766c2b1e1ea
2025-08-12 16:34:42,722 - DEBUG - ==>Verifying data for policy with id: 2ffa284e-32ac-4d82-bc12-dad5685523fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-24580981', 'ctest-policy-allow-all-71958433']
2025-08-12 16:34:42,722 - INFO - VN ctest-vn-53037584 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 16:34:42,722 - DEBUG - Verifying the vn in opserver
2025-08-12 16:34:42,722 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24580981:ctest-vn-53037584 virtual network link through opserver 10.0.0.254
2025-08-12 16:34:42,722 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-12 16:34:42,732 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24580981:ctest-vn-53037584', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24580981:ctest-vn-53037584?flat'}
2025-08-12 16:34:42,732 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24580981:ctest-vn-53037584 is found in opserver
2025-08-12 16:34:42,744 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 16:34:42,748 - DEBUG - VRF ids for VN ctest-vn-53037584: {}
2025-08-12 16:34:42,796 - DEBUG - Services list from nova: [