2025-01-04 17:11:14,973 - INFO - Domain Default found not creating
2025-01-04 17:11:15,105 - INFO - Project ctest-TestBasicPolicy-76042628 not found, creating it
2025-01-04 17:11:15,551 - INFO - Created Project:ctest-TestBasicPolicy-76042628, ID : b47ba0b7-7f9e-45fe-9332-74b0a9d63e01
2025-01-04 17:11:16,953 - INFO - ================================================================================
2025-01-04 17:11:16,953 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-04 17:11:16,953 - 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-01-04 17:11:17,220 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.10': '0'}} with
2025-01-04 17:11:17,220 - INFO - Initial checks done. Running the testcase now
2025-01-04 17:11:17,220 - INFO -
2025-01-04 17:11:17,753 - DEBUG - Response for create_network : {'network': {'id': 'b75161d3-e56d-4887-9cf4-f99105196e38', 'name': 'ctest-vn-33753040', 'tenant_id': 'b47ba0b77f9e45fe933274b0a9d63e01', 'project_id': 'b47ba0b77f9e45fe933274b0a9d63e01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76042628', 'ctest-vn-33753040'], 'port_security_enabled': True, 'description': ''}}
2025-01-04 17:11:17,971 - DEBUG - Response for create_subnet : {'subnet': {'id': '4398b15f-c157-4489-a3be-176bcd67c645', 'name': '', 'tenant_id': 'b47ba0b77f9e45fe933274b0a9d63e01', 'network_id': 'b75161d3-e56d-4887-9cf4-f99105196e38', 'ip_version': 4, 'cidr': '140.79.46.0/26', 'allocation_pools': [{'start': '140.79.46.2', 'end': '140.79.46.62'}], 'gateway_ip': '140.79.46.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.79.46.2', 'tags': [], 'project_id': 'b47ba0b77f9e45fe933274b0a9d63e01'}}
2025-01-04 17:11:17,988 - INFO - Created VN ctest-vn-33753040
2025-01-04 17:11:18,039 - DEBUG - VN ctest-vn-33753040 UUID is b75161d3-e56d-4887-9cf4-f99105196e38
2025-01-04 17:11:18,307 - DEBUG - Response for create_network : {'network': {'id': '5bff6b89-961b-4c93-a2ac-5bc70639d276', 'name': 'ctest-vn-06663877', 'tenant_id': 'b47ba0b77f9e45fe933274b0a9d63e01', 'project_id': 'b47ba0b77f9e45fe933274b0a9d63e01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76042628', 'ctest-vn-06663877'], 'port_security_enabled': True, 'description': ''}}
2025-01-04 17:11:18,512 - DEBUG - Response for create_subnet : {'subnet': {'id': '7669e1b3-aee5-4a9e-9405-784b600d6f2a', 'name': '', 'tenant_id': 'b47ba0b77f9e45fe933274b0a9d63e01', 'network_id': '5bff6b89-961b-4c93-a2ac-5bc70639d276', 'ip_version': 4, 'cidr': '7.202.96.0/26', 'allocation_pools': [{'start': '7.202.96.2', 'end': '7.202.96.62'}], 'gateway_ip': '7.202.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.202.96.2', 'tags': [], 'project_id': 'b47ba0b77f9e45fe933274b0a9d63e01'}}
2025-01-04 17:11:18,527 - INFO - Created VN ctest-vn-06663877
2025-01-04 17:11:18,579 - DEBUG - VN ctest-vn-06663877 UUID is 5bff6b89-961b-4c93-a2ac-5bc70639d276
2025-01-04 17:11:18,731 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76042628:ctest-vn-33753040, 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-76042628:ctest-vn-06663877, 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-01-04 17:11:19,030 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b75161d3-e56d-4887-9cf4-f99105196e38', 'name': 'ctest-vn-33753040', 'tenant_id': 'b47ba0b77f9e45fe933274b0a9d63e01', 'project_id': 'b47ba0b77f9e45fe933274b0a9d63e01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4398b15f-c157-4489-a3be-176bcd67c645'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76042628', 'ctest-vn-33753040'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76042628', 'ctest-policy-allow-all-81728083']], 'subnet_ipam': [{'subnet_cidr': '140.79.46.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-04 17:11:19,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5bff6b89-961b-4c93-a2ac-5bc70639d276', 'name': 'ctest-vn-06663877', 'tenant_id': 'b47ba0b77f9e45fe933274b0a9d63e01', 'project_id': 'b47ba0b77f9e45fe933274b0a9d63e01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7669e1b3-aee5-4a9e-9405-784b600d6f2a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76042628', 'ctest-vn-06663877'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76042628', 'ctest-policy-allow-all-81728083']], 'subnet_ipam': [{'subnet_cidr': '7.202.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-04 17:11:19,383 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-04 17:11:19,672 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-04 17:11:19,699 - DEBUG - Requesting: http://10.0.0.22:8082/domain/992db890-e31f-41ed-bb8e-f9cba29cc2b6
2025-01-04 17:11:19,712 - DEBUG - Requesting: http://10.0.0.22:8082/project/b47ba0b7-7f9e-45fe-9332-74b0a9d63e01
2025-01-04 17:11:19,785 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b75161d3-e56d-4887-9cf4-f99105196e38
2025-01-04 17:11:19,796 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b75161d3-e56d-4887-9cf4-f99105196e38
2025-01-04 17:11:19,805 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/59386514-37b4-4dd4-9bff-69a88d38a660
2025-01-04 17:11:19,812 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/59386514-37b4-4dd4-9bff-69a88d38a660
2025-01-04 17:11:19,819 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9cf764cb-8afd-40ee-ad9a-f3a9b9a6bccb
2025-01-04 17:11:19,829 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-04 17:11:19,829 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b75161d3-e56d-4887-9cf4-f99105196e38
2025-01-04 17:11:19,839 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/59386514-37b4-4dd4-9bff-69a88d38a660
2025-01-04 17:11:19,853 - INFO - Verified VN network id 8 for VN b75161d3-e56d-4887-9cf4-f99105196e38
2025-01-04 17:11:19,853 - INFO - Verifications in API Server for VN ctest-vn-33753040 passed
2025-01-04 17:11:19,853 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b75161d3-e56d-4887-9cf4-f99105196e38
2025-01-04 17:11:19,863 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/59386514-37b4-4dd4-9bff-69a88d38a660
2025-01-04 17:11:19,870 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/59386514-37b4-4dd4-9bff-69a88d38a660
2025-01-04 17:11:19,877 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9cf764cb-8afd-40ee-ad9a-f3a9b9a6bccb
2025-01-04 17:11:19,888 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76042628:ctest-vn-33753040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76042628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13209446744769513607', 'uuid-lslong': '11309938965485284920'}, 'enable': 'true', 'created': '2025-01-04T17:11:17', 'last-modified': '2025-01-04T17:11:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.879446'}
2025-01-04 17:11:19,895 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-04 17:11:19,895 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33753040 passed
2025-01-04 17:11:19,895 - DEBUG - ====Verifying policy data for ctest-vn-33753040 in API_Server ======
2025-01-04 17:11:19,895 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-04 17:11:19,900 - DEBUG - Requesting: http://10.0.0.22:8082/domain/992db890-e31f-41ed-bb8e-f9cba29cc2b6
2025-01-04 17:11:19,911 - DEBUG - Requesting: http://10.0.0.22:8082/project/b47ba0b7-7f9e-45fe-9332-74b0a9d63e01
2025-01-04 17:11:19,987 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b75161d3-e56d-4887-9cf4-f99105196e38
2025-01-04 17:11:19,998 - DEBUG - ==>Verifying data for policy with id: 723ead84-6369-4ecd-a8fc-31c9ccbef773, fqn: ['default-domain', 'ctest-TestBasicPolicy-76042628', 'ctest-policy-allow-all-81728083']
2025-01-04 17:11:19,998 - INFO - VN ctest-vn-33753040 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-04 17:11:19,998 - DEBUG - Verifying the vn in opserver
2025-01-04 17:11:19,998 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76042628:ctest-vn-33753040 virtual network link through opserver 10.0.0.22
2025-01-04 17:11:19,999 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-04 17:11:20,303 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-04 17:11:20,361 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76042628:ctest-vn-33753040', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76042628:ctest-vn-33753040?flat'}
2025-01-04 17:11:20,361 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76042628:ctest-vn-33753040 is found in opserver
2025-01-04 17:11:20,371 - DEBUG - Do not have enough data to verify VN in agent
2025-01-04 17:11:20,376 - DEBUG - VRF ids for VN ctest-vn-33753040: {}
2025-01-04 17:11:20,376 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-04 17:11:20,382 - DEBUG - Requesting: http://10.0.0.22:8082/domain/992db890-e31f-41ed-bb8e-f9cba29cc2b6
2025-01-04 17:11:20,393 - DEBUG - Requesting: http://10.0.0.22:8082/project/b47ba0b7-7f9e-45fe-9332-74b0a9d63e01
2025-01-04 17:11:20,468 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5bff6b89-961b-4c93-a2ac-5bc70639d276
2025-01-04 17:11:20,480 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5bff6b89-961b-4c93-a2ac-5bc70639d276
2025-01-04 17:11:20,488 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6072271-176f-4e97-81ea-75a01d85bb62
2025-01-04 17:11:20,495 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6072271-176f-4e97-81ea-75a01d85bb62
2025-01-04 17:11:20,501 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/42310432-9148-47ea-879e-aebaa01a7e20
2025-01-04 17:11:20,507 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-04 17:11:20,507 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5bff6b89-961b-4c93-a2ac-5bc70639d276
2025-01-04 17:11:20,516 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6072271-176f-4e97-81ea-75a01d85bb62
2025-01-04 17:11:20,528 - INFO - Verified VN network id 9 for VN 5bff6b89-961b-4c93-a2ac-5bc70639d276
2025-01-04 17:11:20,528 - INFO - Verifications in API Server for VN ctest-vn-06663877 passed
2025-01-04 17:11:20,528 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5bff6b89-961b-4c93-a2ac-5bc70639d276
2025-01-04 17:11:20,537 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6072271-176f-4e97-81ea-75a01d85bb62
2025-01-04 17:11:20,543 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6072271-176f-4e97-81ea-75a01d85bb62
2025-01-04 17:11:20,550 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/42310432-9148-47ea-879e-aebaa01a7e20
2025-01-04 17:11:20,561 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76042628:ctest-vn-06663877', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76042628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6629135415185722515', 'uuid-lslong': '11721844840499630710'}, 'enable': 'true', 'created': '2025-01-04T17:11:18', 'last-modified': '2025-01-04T17:11:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.364582'}
2025-01-04 17:11:20,567 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-04 17:11:20,567 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06663877 passed
2025-01-04 17:11:20,567 - DEBUG - ====Verifying policy data for ctest-vn-06663877 in API_Server ======
2025-01-04 17:11:20,567 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-04 17:11:20,573 - DEBUG - Requesting: http://10.0.0.22:8082/domain/992db890-e31f-41ed-bb8e-f9cba29cc2b6
2025-01-04 17:11:20,584 - DEBUG - Requesting: http://10.0.0.22:8082/project/b47ba0b7-7f9e-45fe-9332-74b0a9d63e01
2025-01-04 17:11:20,654 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5bff6b89-961b-4c93-a2ac-5bc70639d276
2025-01-04 17:11:20,664 - DEBUG - ==>Verifying data for policy with id: 723ead84-6369-4ecd-a8fc-31c9ccbef773, fqn: ['default-domain', 'ctest-TestBasicPolicy-76042628', 'ctest-policy-allow-all-81728083']
2025-01-04 17:11:20,664 - INFO - VN ctest-vn-06663877 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-04 17:11:20,664 - DEBUG - Verifying the vn in opserver
2025-01-04 17:11:20,664 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76042628:ctest-vn-06663877 virtual network link through opserver 10.0.0.22
2025-01-04 17:11:20,664 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-04 17:11:20,673 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76042628:ctest-vn-06663877', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76042628:ctest-vn-06663877?flat'}
2025-01-04 17:11:20,673 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76042628:ctest-vn-06663877 is found in opserver
2025-01-04 17:11:20,683 - DEBUG - Do not have enough data to verify VN in agent
2025-01-04 17:11:20,687 - DEBUG - VRF ids for VN ctest-vn-06663877: {}
2025-01-04 17:11:20,739 - DEBUG - Services list from nova: [