2024-11-08 15:36:26,420 - INFO - Domain Default found not creating
2024-11-08 15:36:26,606 - INFO - Project ctest-TestBasicPolicy-03163002 not found, creating it
2024-11-08 15:36:27,110 - INFO - Created Project:ctest-TestBasicPolicy-03163002, ID : 1faaf989-9170-49d1-bf0b-d03c8af9302a
2024-11-08 15:36:28,719 - INFO - ================================================================================
2024-11-08 15:36:28,720 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 15:36:28,720 - 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
2024-11-08 15:36:28,976 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.6': '0'}} with
2024-11-08 15:36:28,976 - INFO - Initial checks done. Running the testcase now
2024-11-08 15:36:28,976 - INFO -
2024-11-08 15:36:29,563 - DEBUG - Response for create_network : {'network': {'id': '0b2ce711-3527-4537-9eb8-173fd45f232e', 'name': 'ctest-vn-17067181', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'project_id': '1faaf989917049d1bf0bd03c8af9302a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-vn-17067181'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 15:36:29,802 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edfa9654-ac0e-4867-af25-ab5b07b09d9e', 'name': '', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'network_id': '0b2ce711-3527-4537-9eb8-173fd45f232e', 'ip_version': 4, 'cidr': '220.166.89.64/26', 'allocation_pools': [{'start': '220.166.89.66', 'end': '220.166.89.126'}], 'gateway_ip': '220.166.89.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.166.89.66', 'tags': [], 'project_id': '1faaf989917049d1bf0bd03c8af9302a'}}
2024-11-08 15:36:29,827 - INFO - Created VN ctest-vn-17067181
2024-11-08 15:36:29,886 - DEBUG - VN ctest-vn-17067181 UUID is 0b2ce711-3527-4537-9eb8-173fd45f232e
2024-11-08 15:36:30,249 - DEBUG - Response for create_network : {'network': {'id': 'dfc1723a-af43-4d95-8b67-934219103d2a', 'name': 'ctest-vn-16901609', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'project_id': '1faaf989917049d1bf0bd03c8af9302a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-vn-16901609'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 15:36:30,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '959ff502-5c64-43e6-be87-4e10050d5af1', 'name': '', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'network_id': 'dfc1723a-af43-4d95-8b67-934219103d2a', 'ip_version': 4, 'cidr': '134.209.12.0/26', 'allocation_pools': [{'start': '134.209.12.2', 'end': '134.209.12.62'}], 'gateway_ip': '134.209.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.209.12.2', 'tags': [], 'project_id': '1faaf989917049d1bf0bd03c8af9302a'}}
2024-11-08 15:36:30,457 - INFO - Created VN ctest-vn-16901609
2024-11-08 15:36:30,518 - DEBUG - VN ctest-vn-16901609 UUID is dfc1723a-af43-4d95-8b67-934219103d2a
2024-11-08 15:36:30,644 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181, 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-03163002:ctest-vn-16901609, 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]
2024-11-08 15:36:30,984 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b2ce711-3527-4537-9eb8-173fd45f232e', 'name': 'ctest-vn-17067181', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'project_id': '1faaf989917049d1bf0bd03c8af9302a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['edfa9654-ac0e-4867-af25-ab5b07b09d9e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-vn-17067181'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-policy-allow-all-51876885']], 'subnet_ipam': [{'subnet_cidr': '220.166.89.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 15:36:31,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dfc1723a-af43-4d95-8b67-934219103d2a', 'name': 'ctest-vn-16901609', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'project_id': '1faaf989917049d1bf0bd03c8af9302a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['959ff502-5c64-43e6-be87-4e10050d5af1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-vn-16901609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-policy-allow-all-51876885']], 'subnet_ipam': [{'subnet_cidr': '134.209.12.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 15:36:31,466 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-08 15:36:31,789 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-08 15:36:31,831 - DEBUG - Requesting: http://10.0.0.12:8082/domain/55a36a77-f325-48d8-a3d5-8f547d9f5482
2024-11-08 15:36:31,848 - DEBUG - Requesting: http://10.0.0.12:8082/project/1faaf989-9170-49d1-bf0b-d03c8af9302a
2024-11-08 15:36:31,940 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0b2ce711-3527-4537-9eb8-173fd45f232e
2024-11-08 15:36:31,958 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0b2ce711-3527-4537-9eb8-173fd45f232e
2024-11-08 15:36:31,974 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e9b48f3f-b725-4aff-bebe-3f5d2992a597
2024-11-08 15:36:31,984 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e9b48f3f-b725-4aff-bebe-3f5d2992a597
2024-11-08 15:36:31,994 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/22b56a25-9044-4f82-8b52-ee993ce89ee3
2024-11-08 15:36:32,005 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 15:36:32,005 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0b2ce711-3527-4537-9eb8-173fd45f232e
2024-11-08 15:36:32,025 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e9b48f3f-b725-4aff-bebe-3f5d2992a597
2024-11-08 15:36:32,053 - INFO - Verified VN network id 8 for VN 0b2ce711-3527-4537-9eb8-173fd45f232e
2024-11-08 15:36:32,053 - INFO - Verifications in API Server for VN ctest-vn-17067181 passed
2024-11-08 15:36:32,053 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0b2ce711-3527-4537-9eb8-173fd45f232e
2024-11-08 15:36:32,068 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e9b48f3f-b725-4aff-bebe-3f5d2992a597
2024-11-08 15:36:32,078 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e9b48f3f-b725-4aff-bebe-3f5d2992a597
2024-11-08 15:36:32,087 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/22b56a25-9044-4f82-8b52-ee993ce89ee3
2024-11-08 15:36:32,101 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03163002', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '805272494484702519', 'uuid-lslong': '11436916816620757806'}, 'enable': 'true', 'created': '2024-11-08T15:36:29', 'last-modified': '2024-11-08T15:36:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.150593'}
2024-11-08 15:36:32,109 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 15:36:32,109 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17067181 passed
2024-11-08 15:36:32,109 - DEBUG - ====Verifying policy data for ctest-vn-17067181 in API_Server ======
2024-11-08 15:36:32,109 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-08 15:36:32,117 - DEBUG - Requesting: http://10.0.0.12:8082/domain/55a36a77-f325-48d8-a3d5-8f547d9f5482
2024-11-08 15:36:32,138 - DEBUG - Requesting: http://10.0.0.12:8082/project/1faaf989-9170-49d1-bf0b-d03c8af9302a
2024-11-08 15:36:32,224 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0b2ce711-3527-4537-9eb8-173fd45f232e
2024-11-08 15:36:32,243 - DEBUG - ==>Verifying data for policy with id: f603f730-4812-4769-b53c-cb57e4defda9, fqn: ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-policy-allow-all-51876885']
2024-11-08 15:36:32,243 - INFO - VN ctest-vn-17067181 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 15:36:32,244 - DEBUG - Verifying the vn in opserver
2024-11-08 15:36:32,244 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181 virtual network link through opserver 10.0.0.12
2024-11-08 15:36:32,244 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-08 15:36:32,550 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-08 15:36:32,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181?flat'}
2024-11-08 15:36:32,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181 is found in opserver
2024-11-08 15:36:32,642 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 15:36:32,649 - DEBUG - VRF ids for VN ctest-vn-17067181: {}
2024-11-08 15:36:32,649 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-08 15:36:32,657 - DEBUG - Requesting: http://10.0.0.12:8082/domain/55a36a77-f325-48d8-a3d5-8f547d9f5482
2024-11-08 15:36:32,680 - DEBUG - Requesting: http://10.0.0.12:8082/project/1faaf989-9170-49d1-bf0b-d03c8af9302a
2024-11-08 15:36:32,782 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc1723a-af43-4d95-8b67-934219103d2a
2024-11-08 15:36:32,802 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc1723a-af43-4d95-8b67-934219103d2a
2024-11-08 15:36:32,818 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/07237af7-6b0a-469f-89b3-e74f7ed2f97e
2024-11-08 15:36:32,828 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/07237af7-6b0a-469f-89b3-e74f7ed2f97e
2024-11-08 15:36:32,838 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/93d2d2b1-ab1f-4986-961b-5afe3c548b7f
2024-11-08 15:36:32,848 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 15:36:32,848 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc1723a-af43-4d95-8b67-934219103d2a
2024-11-08 15:36:32,866 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/07237af7-6b0a-469f-89b3-e74f7ed2f97e
2024-11-08 15:36:32,889 - INFO - Verified VN network id 9 for VN dfc1723a-af43-4d95-8b67-934219103d2a
2024-11-08 15:36:32,889 - INFO - Verifications in API Server for VN ctest-vn-16901609 passed
2024-11-08 15:36:32,889 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc1723a-af43-4d95-8b67-934219103d2a
2024-11-08 15:36:32,904 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/07237af7-6b0a-469f-89b3-e74f7ed2f97e
2024-11-08 15:36:32,914 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/07237af7-6b0a-469f-89b3-e74f7ed2f97e
2024-11-08 15:36:32,926 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/93d2d2b1-ab1f-4986-961b-5afe3c548b7f
2024-11-08 15:36:32,951 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-16901609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03163002', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16123293737337179541', 'uuid-lslong': '10045159405970799914'}, 'enable': 'true', 'created': '2024-11-08T15:36:30', 'last-modified': '2024-11-08T15:36:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.727216'}
2024-11-08 15:36:32,961 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 15:36:32,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16901609 passed
2024-11-08 15:36:32,961 - DEBUG - ====Verifying policy data for ctest-vn-16901609 in API_Server ======
2024-11-08 15:36:32,961 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-08 15:36:32,969 - DEBUG - Requesting: http://10.0.0.12:8082/domain/55a36a77-f325-48d8-a3d5-8f547d9f5482
2024-11-08 15:36:32,988 - DEBUG - Requesting: http://10.0.0.12:8082/project/1faaf989-9170-49d1-bf0b-d03c8af9302a
2024-11-08 15:36:33,076 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc1723a-af43-4d95-8b67-934219103d2a
2024-11-08 15:36:33,093 - DEBUG - ==>Verifying data for policy with id: f603f730-4812-4769-b53c-cb57e4defda9, fqn: ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-policy-allow-all-51876885']
2024-11-08 15:36:33,093 - INFO - VN ctest-vn-16901609 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 15:36:33,093 - DEBUG - Verifying the vn in opserver
2024-11-08 15:36:33,094 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-16901609 virtual network link through opserver 10.0.0.12
2024-11-08 15:36:33,094 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-08 15:36:33,105 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-16901609', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-16901609?flat'}
2024-11-08 15:36:33,106 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-16901609 is found in opserver
2024-11-08 15:36:33,122 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 15:36:33,132 - DEBUG - VRF ids for VN ctest-vn-16901609: {}
2024-11-08 15:36:33,208 - DEBUG - Services list from nova: [