2025-02-11 11:57:33,055 - INFO - Domain Default found not creating
2025-02-11 11:57:33,224 - INFO - Project ctest-TestBasicPolicy-83527895 not found, creating it
2025-02-11 11:57:33,751 - INFO - Created Project:ctest-TestBasicPolicy-83527895, ID : 48fe4451-7f88-4fa1-b9d6-f5d2345a5f1b
2025-02-11 11:57:35,385 - INFO - ================================================================================
2025-02-11 11:57:35,385 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-11 11:57:35,385 - 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-02-11 11:57:35,648 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.6': '0'}} with
2025-02-11 11:57:35,648 - INFO - Initial checks done. Running the testcase now
2025-02-11 11:57:35,648 - INFO -
2025-02-11 11:57:36,283 - DEBUG - Response for create_network : {'network': {'id': 'c9df4279-d870-4e31-b115-23f98ff5a89d', 'name': 'ctest-vn-57341856', 'tenant_id': '48fe44517f884fa1b9d6f5d2345a5f1b', 'project_id': '48fe44517f884fa1b9d6f5d2345a5f1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83527895', 'ctest-vn-57341856'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 11:57:36,486 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0bbd526-ccab-4581-b5de-cadcf72204f8', 'name': '', 'tenant_id': '48fe44517f884fa1b9d6f5d2345a5f1b', 'network_id': 'c9df4279-d870-4e31-b115-23f98ff5a89d', 'ip_version': 4, 'cidr': '184.67.117.128/26', 'allocation_pools': [{'start': '184.67.117.130', 'end': '184.67.117.190'}], 'gateway_ip': '184.67.117.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.67.117.130', 'tags': [], 'project_id': '48fe44517f884fa1b9d6f5d2345a5f1b'}}
2025-02-11 11:57:36,506 - INFO - Created VN ctest-vn-57341856
2025-02-11 11:57:36,566 - DEBUG - VN ctest-vn-57341856 UUID is c9df4279-d870-4e31-b115-23f98ff5a89d
2025-02-11 11:57:36,877 - DEBUG - Response for create_network : {'network': {'id': '7065762d-76fb-4f7e-8174-b48957afdc8d', 'name': 'ctest-vn-52345076', 'tenant_id': '48fe44517f884fa1b9d6f5d2345a5f1b', 'project_id': '48fe44517f884fa1b9d6f5d2345a5f1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83527895', 'ctest-vn-52345076'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 11:57:37,108 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a36e456-32fc-4e96-b086-570fdea60106', 'name': '', 'tenant_id': '48fe44517f884fa1b9d6f5d2345a5f1b', 'network_id': '7065762d-76fb-4f7e-8174-b48957afdc8d', 'ip_version': 4, 'cidr': '73.198.42.0/26', 'allocation_pools': [{'start': '73.198.42.2', 'end': '73.198.42.62'}], 'gateway_ip': '73.198.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.198.42.2', 'tags': [], 'project_id': '48fe44517f884fa1b9d6f5d2345a5f1b'}}
2025-02-11 11:57:37,130 - INFO - Created VN ctest-vn-52345076
2025-02-11 11:57:37,186 - DEBUG - VN ctest-vn-52345076 UUID is 7065762d-76fb-4f7e-8174-b48957afdc8d
2025-02-11 11:57:37,319 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83527895:ctest-vn-57341856, 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-83527895:ctest-vn-52345076, 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-02-11 11:57:37,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9df4279-d870-4e31-b115-23f98ff5a89d', 'name': 'ctest-vn-57341856', 'tenant_id': '48fe44517f884fa1b9d6f5d2345a5f1b', 'project_id': '48fe44517f884fa1b9d6f5d2345a5f1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0bbd526-ccab-4581-b5de-cadcf72204f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83527895', 'ctest-vn-57341856'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83527895', 'ctest-policy-allow-all-87010208']], 'subnet_ipam': [{'subnet_cidr': '184.67.117.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 11:57:37,887 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7065762d-76fb-4f7e-8174-b48957afdc8d', 'name': 'ctest-vn-52345076', 'tenant_id': '48fe44517f884fa1b9d6f5d2345a5f1b', 'project_id': '48fe44517f884fa1b9d6f5d2345a5f1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a36e456-32fc-4e96-b086-570fdea60106'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83527895', 'ctest-vn-52345076'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83527895', 'ctest-policy-allow-all-87010208']], 'subnet_ipam': [{'subnet_cidr': '73.198.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 11:57:38,062 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-11 11:57:38,399 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-11 11:57:38,431 - DEBUG - Requesting: http://10.0.0.36:8082/domain/1d5d2ae2-4994-4d3b-98f2-6128db3cbad1
2025-02-11 11:57:38,446 - DEBUG - Requesting: http://10.0.0.36:8082/project/48fe4451-7f88-4fa1-b9d6-f5d2345a5f1b
2025-02-11 11:57:38,529 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/c9df4279-d870-4e31-b115-23f98ff5a89d
2025-02-11 11:57:38,547 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/c9df4279-d870-4e31-b115-23f98ff5a89d
2025-02-11 11:57:38,558 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d6067083-24ea-44bf-9095-a1e12e7063c2
2025-02-11 11:57:38,567 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d6067083-24ea-44bf-9095-a1e12e7063c2
2025-02-11 11:57:38,575 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/a404c4cb-8a32-41f6-bce8-42a17df2bd85
2025-02-11 11:57:38,582 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 11:57:38,582 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/c9df4279-d870-4e31-b115-23f98ff5a89d
2025-02-11 11:57:38,593 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d6067083-24ea-44bf-9095-a1e12e7063c2
2025-02-11 11:57:38,609 - INFO - Verified VN network id 8 for VN c9df4279-d870-4e31-b115-23f98ff5a89d
2025-02-11 11:57:38,609 - INFO - Verifications in API Server for VN ctest-vn-57341856 passed
2025-02-11 11:57:38,610 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/c9df4279-d870-4e31-b115-23f98ff5a89d
2025-02-11 11:57:38,621 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d6067083-24ea-44bf-9095-a1e12e7063c2
2025-02-11 11:57:38,628 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d6067083-24ea-44bf-9095-a1e12e7063c2
2025-02-11 11:57:38,636 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/a404c4cb-8a32-41f6-bce8-42a17df2bd85
2025-02-11 11:57:38,650 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83527895:ctest-vn-57341856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83527895', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14546418412519706161', 'uuid-lslong': '12760144673993238685'}, 'enable': 'true', 'created': '2025-02-11T11:57:36', 'last-modified': '2025-02-11T11:57:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.040127'}
2025-02-11 11:57:38,657 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 11:57:38,657 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57341856 passed
2025-02-11 11:57:38,657 - DEBUG - ====Verifying policy data for ctest-vn-57341856 in API_Server ======
2025-02-11 11:57:38,657 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-11 11:57:38,663 - DEBUG - Requesting: http://10.0.0.36:8082/domain/1d5d2ae2-4994-4d3b-98f2-6128db3cbad1
2025-02-11 11:57:38,676 - DEBUG - Requesting: http://10.0.0.36:8082/project/48fe4451-7f88-4fa1-b9d6-f5d2345a5f1b
2025-02-11 11:57:38,756 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/c9df4279-d870-4e31-b115-23f98ff5a89d
2025-02-11 11:57:38,768 - DEBUG - ==>Verifying data for policy with id: 152cf9b8-e2b1-4f99-af48-5881ddef1d1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-83527895', 'ctest-policy-allow-all-87010208']
2025-02-11 11:57:38,768 - INFO - VN ctest-vn-57341856 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 11:57:38,768 - DEBUG - Verifying the vn in opserver
2025-02-11 11:57:38,768 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83527895:ctest-vn-57341856 virtual network link through opserver 10.0.0.36
2025-02-11 11:57:38,769 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-02-11 11:57:39,099 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-02-11 11:57:39,163 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83527895:ctest-vn-57341856', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83527895:ctest-vn-57341856?flat'}
2025-02-11 11:57:39,163 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83527895:ctest-vn-57341856 is found in opserver
2025-02-11 11:57:39,175 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 11:57:39,181 - DEBUG - VRF ids for VN ctest-vn-57341856: {}
2025-02-11 11:57:39,181 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-11 11:57:39,188 - DEBUG - Requesting: http://10.0.0.36:8082/domain/1d5d2ae2-4994-4d3b-98f2-6128db3cbad1
2025-02-11 11:57:39,200 - DEBUG - Requesting: http://10.0.0.36:8082/project/48fe4451-7f88-4fa1-b9d6-f5d2345a5f1b
2025-02-11 11:57:39,278 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/7065762d-76fb-4f7e-8174-b48957afdc8d
2025-02-11 11:57:39,291 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/7065762d-76fb-4f7e-8174-b48957afdc8d
2025-02-11 11:57:39,302 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/863f541c-ea08-40aa-82f5-1a41c5feffec
2025-02-11 11:57:39,310 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/863f541c-ea08-40aa-82f5-1a41c5feffec
2025-02-11 11:57:39,317 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/63e27370-7c8d-4df5-bb48-4306239b3e51
2025-02-11 11:57:39,324 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 11:57:39,324 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/7065762d-76fb-4f7e-8174-b48957afdc8d
2025-02-11 11:57:39,335 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/863f541c-ea08-40aa-82f5-1a41c5feffec
2025-02-11 11:57:39,351 - INFO - Verified VN network id 9 for VN 7065762d-76fb-4f7e-8174-b48957afdc8d
2025-02-11 11:57:39,351 - INFO - Verifications in API Server for VN ctest-vn-52345076 passed
2025-02-11 11:57:39,351 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/7065762d-76fb-4f7e-8174-b48957afdc8d
2025-02-11 11:57:39,362 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/863f541c-ea08-40aa-82f5-1a41c5feffec
2025-02-11 11:57:39,369 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/863f541c-ea08-40aa-82f5-1a41c5feffec
2025-02-11 11:57:39,377 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/63e27370-7c8d-4df5-bb48-4306239b3e51
2025-02-11 11:57:39,390 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83527895:ctest-vn-52345076', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83527895', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8099009442537492350', 'uuid-lslong': '9328279230165802125'}, 'enable': 'true', 'created': '2025-02-11T11:57:36', 'last-modified': '2025-02-11T11:57:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.536019'}
2025-02-11 11:57:39,397 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 11:57:39,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52345076 passed
2025-02-11 11:57:39,397 - DEBUG - ====Verifying policy data for ctest-vn-52345076 in API_Server ======
2025-02-11 11:57:39,398 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-11 11:57:39,404 - DEBUG - Requesting: http://10.0.0.36:8082/domain/1d5d2ae2-4994-4d3b-98f2-6128db3cbad1
2025-02-11 11:57:39,417 - DEBUG - Requesting: http://10.0.0.36:8082/project/48fe4451-7f88-4fa1-b9d6-f5d2345a5f1b
2025-02-11 11:57:39,492 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/7065762d-76fb-4f7e-8174-b48957afdc8d
2025-02-11 11:57:39,504 - DEBUG - ==>Verifying data for policy with id: 152cf9b8-e2b1-4f99-af48-5881ddef1d1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-83527895', 'ctest-policy-allow-all-87010208']
2025-02-11 11:57:39,505 - INFO - VN ctest-vn-52345076 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 11:57:39,505 - DEBUG - Verifying the vn in opserver
2025-02-11 11:57:39,505 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83527895:ctest-vn-52345076 virtual network link through opserver 10.0.0.36
2025-02-11 11:57:39,505 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-02-11 11:57:39,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83527895:ctest-vn-52345076', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83527895:ctest-vn-52345076?flat'}
2025-02-11 11:57:39,516 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83527895:ctest-vn-52345076 is found in opserver
2025-02-11 11:57:39,529 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 11:57:39,535 - DEBUG - VRF ids for VN ctest-vn-52345076: {}
2025-02-11 11:57:39,596 - DEBUG - Services list from nova: [