2025-02-05 12:19:55,702 - INFO - Domain Default found not creating
2025-02-05 12:19:55,868 - INFO - Project ctest-TestBasicPolicy-00549348 not found, creating it
2025-02-05 12:19:56,385 - INFO - Created Project:ctest-TestBasicPolicy-00549348, ID : f4856f09-50fc-4473-a7b8-819cc659d87a
2025-02-05 12:19:57,843 - INFO - ================================================================================
2025-02-05 12:19:57,843 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-05 12:19:57,843 - 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-05 12:19:58,097 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.22': '0'}} with
2025-02-05 12:19:58,097 - INFO - Initial checks done. Running the testcase now
2025-02-05 12:19:58,098 - INFO -
2025-02-05 12:19:58,633 - DEBUG - Response for create_network : {'network': {'id': '3986880c-bea5-40ae-80bf-8e9a1933e422', 'name': 'ctest-vn-49391657', 'tenant_id': 'f4856f0950fc4473a7b8819cc659d87a', 'project_id': 'f4856f0950fc4473a7b8819cc659d87a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00549348', 'ctest-vn-49391657'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 12:19:58,835 - DEBUG - Response for create_subnet : {'subnet': {'id': '17b114dd-f078-4770-9857-e10e685ff0bf', 'name': '', 'tenant_id': 'f4856f0950fc4473a7b8819cc659d87a', 'network_id': '3986880c-bea5-40ae-80bf-8e9a1933e422', 'ip_version': 4, 'cidr': '79.7.170.64/26', 'allocation_pools': [{'start': '79.7.170.66', 'end': '79.7.170.126'}], 'gateway_ip': '79.7.170.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.7.170.66', 'tags': [], 'project_id': 'f4856f0950fc4473a7b8819cc659d87a'}}
2025-02-05 12:19:58,853 - INFO - Created VN ctest-vn-49391657
2025-02-05 12:19:58,907 - DEBUG - VN ctest-vn-49391657 UUID is 3986880c-bea5-40ae-80bf-8e9a1933e422
2025-02-05 12:19:59,235 - DEBUG - Response for create_network : {'network': {'id': '548127af-fddd-44d5-845a-cd1111048d79', 'name': 'ctest-vn-77837478', 'tenant_id': 'f4856f0950fc4473a7b8819cc659d87a', 'project_id': 'f4856f0950fc4473a7b8819cc659d87a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00549348', 'ctest-vn-77837478'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 12:19:59,458 - DEBUG - Response for create_subnet : {'subnet': {'id': '8aeb6c14-6ad2-4fc1-a890-27c10a6bd5b3', 'name': '', 'tenant_id': 'f4856f0950fc4473a7b8819cc659d87a', 'network_id': '548127af-fddd-44d5-845a-cd1111048d79', 'ip_version': 4, 'cidr': '168.180.137.128/26', 'allocation_pools': [{'start': '168.180.137.130', 'end': '168.180.137.190'}], 'gateway_ip': '168.180.137.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.180.137.130', 'tags': [], 'project_id': 'f4856f0950fc4473a7b8819cc659d87a'}}
2025-02-05 12:19:59,477 - INFO - Created VN ctest-vn-77837478
2025-02-05 12:19:59,527 - DEBUG - VN ctest-vn-77837478 UUID is 548127af-fddd-44d5-845a-cd1111048d79
2025-02-05 12:19:59,642 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00549348:ctest-vn-49391657, 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-00549348:ctest-vn-77837478, 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-05 12:19:59,937 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3986880c-bea5-40ae-80bf-8e9a1933e422', 'name': 'ctest-vn-49391657', 'tenant_id': 'f4856f0950fc4473a7b8819cc659d87a', 'project_id': 'f4856f0950fc4473a7b8819cc659d87a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17b114dd-f078-4770-9857-e10e685ff0bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00549348', 'ctest-vn-49391657'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00549348', 'ctest-policy-allow-all-11647528']], 'subnet_ipam': [{'subnet_cidr': '79.7.170.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 12:20:00,232 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '548127af-fddd-44d5-845a-cd1111048d79', 'name': 'ctest-vn-77837478', 'tenant_id': 'f4856f0950fc4473a7b8819cc659d87a', 'project_id': 'f4856f0950fc4473a7b8819cc659d87a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8aeb6c14-6ad2-4fc1-a890-27c10a6bd5b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00549348', 'ctest-vn-77837478'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00549348', 'ctest-policy-allow-all-11647528']], 'subnet_ipam': [{'subnet_cidr': '168.180.137.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 12:20:00,391 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-02-05 12:20:00,688 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-02-05 12:20:00,716 - DEBUG - Requesting: http://10.0.0.42:8082/domain/c2e82eb6-3e53-4350-9edc-d3959033fd8f
2025-02-05 12:20:00,731 - DEBUG - Requesting: http://10.0.0.42:8082/project/f4856f09-50fc-4473-a7b8-819cc659d87a
2025-02-05 12:20:00,804 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3986880c-bea5-40ae-80bf-8e9a1933e422
2025-02-05 12:20:00,815 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3986880c-bea5-40ae-80bf-8e9a1933e422
2025-02-05 12:20:00,824 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/91f83eef-9b59-4d6d-92fb-beacff868c15
2025-02-05 12:20:00,832 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/91f83eef-9b59-4d6d-92fb-beacff868c15
2025-02-05 12:20:00,839 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/6eae6cf2-8ca2-41a2-b8cc-2af103c60a1d
2025-02-05 12:20:00,845 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 12:20:00,845 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3986880c-bea5-40ae-80bf-8e9a1933e422
2025-02-05 12:20:00,855 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/91f83eef-9b59-4d6d-92fb-beacff868c15
2025-02-05 12:20:00,869 - INFO - Verified VN network id 7 for VN 3986880c-bea5-40ae-80bf-8e9a1933e422
2025-02-05 12:20:00,869 - INFO - Verifications in API Server for VN ctest-vn-49391657 passed
2025-02-05 12:20:00,869 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3986880c-bea5-40ae-80bf-8e9a1933e422
2025-02-05 12:20:00,879 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/91f83eef-9b59-4d6d-92fb-beacff868c15
2025-02-05 12:20:00,886 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/91f83eef-9b59-4d6d-92fb-beacff868c15
2025-02-05 12:20:00,894 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/6eae6cf2-8ca2-41a2-b8cc-2af103c60a1d
2025-02-05 12:20:00,907 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00549348:ctest-vn-49391657', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00549348', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4145150095360606382', 'uuid-lslong': '9277290549905450018'}, 'enable': 'true', 'created': '2025-02-05T12:19:58', 'last-modified': '2025-02-05T12:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995369'}
2025-02-05 12:20:00,914 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 12:20:00,915 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49391657 passed
2025-02-05 12:20:00,915 - DEBUG - ====Verifying policy data for ctest-vn-49391657 in API_Server ======
2025-02-05 12:20:00,915 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-02-05 12:20:00,924 - DEBUG - Requesting: http://10.0.0.42:8082/domain/c2e82eb6-3e53-4350-9edc-d3959033fd8f
2025-02-05 12:20:00,935 - DEBUG - Requesting: http://10.0.0.42:8082/project/f4856f09-50fc-4473-a7b8-819cc659d87a
2025-02-05 12:20:01,013 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3986880c-bea5-40ae-80bf-8e9a1933e422
2025-02-05 12:20:01,025 - DEBUG - ==>Verifying data for policy with id: 7d8fdd96-91e3-454e-9f68-92abbf441ac1, fqn: ['default-domain', 'ctest-TestBasicPolicy-00549348', 'ctest-policy-allow-all-11647528']
2025-02-05 12:20:01,026 - INFO - VN ctest-vn-49391657 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 12:20:01,026 - DEBUG - Verifying the vn in opserver
2025-02-05 12:20:01,026 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00549348:ctest-vn-49391657 virtual network link through opserver 10.0.0.42
2025-02-05 12:20:01,026 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-02-05 12:20:01,321 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-02-05 12:20:01,383 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00549348:ctest-vn-49391657', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00549348:ctest-vn-49391657?flat'}
2025-02-05 12:20:01,383 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00549348:ctest-vn-49391657 is found in opserver
2025-02-05 12:20:01,395 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 12:20:01,401 - DEBUG - VRF ids for VN ctest-vn-49391657: {}
2025-02-05 12:20:01,401 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-02-05 12:20:01,407 - DEBUG - Requesting: http://10.0.0.42:8082/domain/c2e82eb6-3e53-4350-9edc-d3959033fd8f
2025-02-05 12:20:01,420 - DEBUG - Requesting: http://10.0.0.42:8082/project/f4856f09-50fc-4473-a7b8-819cc659d87a
2025-02-05 12:20:01,496 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/548127af-fddd-44d5-845a-cd1111048d79
2025-02-05 12:20:01,509 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/548127af-fddd-44d5-845a-cd1111048d79
2025-02-05 12:20:01,519 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/91385463-4fc5-4c56-9960-b56880085a46
2025-02-05 12:20:01,528 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/91385463-4fc5-4c56-9960-b56880085a46
2025-02-05 12:20:01,536 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/5cf60ba8-d169-4a60-84fe-d92796beb81d
2025-02-05 12:20:01,544 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 12:20:01,544 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/548127af-fddd-44d5-845a-cd1111048d79
2025-02-05 12:20:01,555 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/91385463-4fc5-4c56-9960-b56880085a46
2025-02-05 12:20:01,572 - INFO - Verified VN network id 8 for VN 548127af-fddd-44d5-845a-cd1111048d79
2025-02-05 12:20:01,572 - INFO - Verifications in API Server for VN ctest-vn-77837478 passed
2025-02-05 12:20:01,572 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/548127af-fddd-44d5-845a-cd1111048d79
2025-02-05 12:20:01,583 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/91385463-4fc5-4c56-9960-b56880085a46
2025-02-05 12:20:01,590 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/91385463-4fc5-4c56-9960-b56880085a46
2025-02-05 12:20:01,598 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/5cf60ba8-d169-4a60-84fe-d92796beb81d
2025-02-05 12:20:01,610 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00549348:ctest-vn-77837478', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00549348', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6089191808013518037', 'uuid-lslong': '9537160634094095737'}, 'enable': 'true', 'created': '2025-02-05T12:19:59', 'last-modified': '2025-02-05T12:20:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.445326'}
2025-02-05 12:20:01,617 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 12:20:01,617 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77837478 passed
2025-02-05 12:20:01,617 - DEBUG - ====Verifying policy data for ctest-vn-77837478 in API_Server ======
2025-02-05 12:20:01,617 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-02-05 12:20:01,624 - DEBUG - Requesting: http://10.0.0.42:8082/domain/c2e82eb6-3e53-4350-9edc-d3959033fd8f
2025-02-05 12:20:01,636 - DEBUG - Requesting: http://10.0.0.42:8082/project/f4856f09-50fc-4473-a7b8-819cc659d87a
2025-02-05 12:20:01,710 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/548127af-fddd-44d5-845a-cd1111048d79
2025-02-05 12:20:01,721 - DEBUG - ==>Verifying data for policy with id: 7d8fdd96-91e3-454e-9f68-92abbf441ac1, fqn: ['default-domain', 'ctest-TestBasicPolicy-00549348', 'ctest-policy-allow-all-11647528']
2025-02-05 12:20:01,721 - INFO - VN ctest-vn-77837478 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 12:20:01,721 - DEBUG - Verifying the vn in opserver
2025-02-05 12:20:01,721 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00549348:ctest-vn-77837478 virtual network link through opserver 10.0.0.42
2025-02-05 12:20:01,721 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-02-05 12:20:01,732 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00549348:ctest-vn-77837478', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00549348:ctest-vn-77837478?flat'}
2025-02-05 12:20:01,733 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00549348:ctest-vn-77837478 is found in opserver
2025-02-05 12:20:01,744 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 12:20:01,749 - DEBUG - VRF ids for VN ctest-vn-77837478: {}
2025-02-05 12:20:01,809 - DEBUG - Services list from nova: [